Auroras result from emissions of photons in the Earth's upper atmosphere, above 80 kilometers , from ionized nitrogen atoms regaining an electron, and oxygen atoms and nitrogen based molecules returning from an excited state to ground state.