But this activity waxes and wanes through an 11-year cycle
The theory given to explain this magnetic activity is called the solar dynamo.