A magnetar is a type of neutron star with an extremely powerful magnetic field. The magnetic-field decay powers the emission of high-energy electromagnetic radiation, particularly X-rays and gamma rays. From Wikipedia
New research confirms that up to 10% of the galaxy's gold and other heavy elements originate from rare, powerful eruptions of magnetized neutron stars.