Answer:
At the surface of the sun, the magnetic field lines look like many loops rising up out of the surface into the atmosphere and these loops are changing all the time. If the loops touch each other they can cause sudden explosions of enormous amounts of energy that heat up the atmosphere.