Do you know that the most powerful magnets in the universe are actually a type of star. Magnetars are the remains of stars that have “run out of fuel”, or in other words, hydrogen. The star is essentially dying, and when this happens, it tries to compensate for the lack of fuel by burning all the types of elements. This smorgasbord of fuels causes the star to burn as a bright red giant, but only for a temporary time. Eventually, the burning causes the star to burst into a supernova explosion.