Answer:
Charged particles come from the sun, especially after sunspot activity and solar flares. They stream through space and are attracted to the magnetic poles of the earth. In the ionosphere they collide with oxygen and nitrogen atoms, which give out green, blue and red light.
This light is known as the Aurora Borealis, or Aurora Australis, the Northern and Southern Lights.