Auroras are caused by magnetic storms in the Sun.

An excerpt from the article 16 facts about Aurora
Huge amounts of high-energy charged particles (mainly protons and electrons) are then ejected from the surface of the Sun. They form the so-called solar wind. The accelerated particles of the solar wind are intercepted by the Earth's magnetic field and interact with the ionized atmosphere at an altitude of about 100 km.