When some massive stars run out of their fuel, they implode in a cataclysmic explosion known as a supernova, leaving a rapidly spinning, dense, extremely compact core, with one of the most powerful gravitational and magnetic fields, in their wake. This stellar remnant, forged out of a dying massive stellar object, is known as a neutron star.