A process in which the topology of magnetic field lines change, releasing energy and accelerating charged particles.