Solar storms occur when the magnetic field lines in the outer part of the Sun's atmosphere become entangled and then snap back into place. The sudden magnetic reconnection emits huge amounts of plasma and magnetic field. If a powerful ejection passes over the Earth, it is able to compress the planet's magnetic shield, causing a solar storm.