The surface of the Sun is filled with electrically charged gases that generate areas of powerful magnetic forces, known as magnetic fields.
These electrically-charged hot gases on the Sun are constantly moving, tangling, stretching and twisting these magnetic fields.
These can then lead to a sudden explosion of energy and we call these phenomena solar flares. The Sun follows a certain schedule and it is called a solar cycle that lasts for 11 years after which the activity subsides.
During this active period, the most worrying things about the Sun's activities are these giant solar flares that it generates and sends shooting out into space and some of them are directed at Earth.Read more on tech.hindustantimes.com