Dissipation of magnetic energy
It's like a great big spring that's being wound up and eventually snaps.
Technical definition
The process by which magnetic energy is released as heat or other forms of energy, often due to the interaction between magnetic fields and high-energy particles.