Do you know what happens when a middle sized star dies? It becomes a pulsar or a magnetar. The pulsar is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation. The magnetar is a type of neutron star with an extremely powerful magnetic field. They are very dangerous and beautiful at the same time.