If the star has greater mass, it can repeat this process, turning into a dwarf if it fails to fuse the next element; the only exception is that the internal pressure causes a more intense fusion reaction - as a result, the star becomes even larger - a supergiant, rather than just a giant. Given an initial mass 10 or more times that of the sun, their death will result in a supernova; the mass of the star is so great that it can successfully fuse elements up to iron, but at iron, exothermic fusion (fusion with a net energy surplus) ceases. The star then collapses until the pressure is high enough to fuse iron, absorbing a significant amount of energy in the process but creating a tremendous amount as well. Consider that stars spend millions or billions of years burning hydrogen and helium, while the time remaining after switching to carbon may be thousands of years and the fusion of silica into iron takes fractions of a year at most. A supernova can release on the order of 1044 joules, about 1018 times the sun’s energy output in any given second, or approximately equivalent to its energy output for eight and a quarter billion years, three billion years longer than it has been around.
At this point, the remnant of that explosion becomes a neutron star (if its initial mass was less than 20 solar masses) or a black hole, but that's a story for another article...
If all of this inspires you to make your own star, try out this star generator!