Spectral lines are associated with the difference in energy between different electron 'orbits'.