The Sun continuously releases a stream of charged particles known as the solar wind. These particles travel through space and interact with the Earth's magnetosphere, which is a region surrounding our planet that is influenced by its magnetic field.
When these charged particles from the solar wind enter the Earth's magnetosphere, they follow the magnetic field lines and are guided towards the polar regions. As the particles approach the poles, they collide with atoms and molecules in the Earth's atmosphere, causing them to become excited and emit photons. These photons create the beautiful shimmering patterns and colors of the aurora.
Therefore, while the northern lights are ultimately caused by the Sun's activity and the release of solar wind particles, the process involves interactions with the Earth's magnetic field and atmospheric particles, not just direct particles from the Sun.