A magnetar is a neutron star with a strong magnetic field. The decay of the field powers emission of X-rays and gamma rays. Star quakes can trigger gamma ray flashes i.e., the source of some longer gamma-ray bursts.
Magnetars have been observed since 1979 and a theory was put forward in 1992. Circa 2013, 21 magnetars have been identified.