Magnetars are rapidly spinning ultra-magnetic neutron stars with a period of between 3 and 12 seconds and are subject to "starquakes". As their phenomenal magnetic field shifts, the stellar crust breaks and emits bursts of gamma rays. These stars are all that remains of huge stars which have collapsed.