Neutron stars are compact remnants of supernova explosions
Magnetars are highly magnetized neutron stars.
Supernovae are explosions of massive stars.
The exploding supernova ejects huge amounts of matter into the Universe.