Why do solar flares occur?
the sun has a tremendously strong magnetic field and these magnetic fields can get tangled and wound around each other, you can think of it like twisting and pulling on a rubber band, eventually the rubber band snaps; when the sun’s magnetic fields “snap”, material from the sun’s outer surface is projected out into space in a sort of half moon shape we call a solar flare; it is basically the release of a huge amount of pent-up energy all at once, in fact, a single solar flare can release as much energy as the ENTIRE sun releases in one second