What causes aurorae?
When the solar wind is funneled into the Earth's magnetic poles, those particles excite the electrons of molecules in the atmosphere which then bumps those electrons up into another orbital. When the electrons fall back down into their native orbital, they produce a photon of a particular wavelength whose energy is equal to the difference between the energy states of the two orbitals.There is a good pdf from NASA here and another good article here.