Red supergiant
Each time a fuel runs out, the core contracts, heats up and lights the next: helium to carbon, carbon to neon, and on through oxygen and silicon to iron. Each stage is shorter than the last: the final one takes about a day. The star ends with layers like an onion, the heaviest elements at the center.
Supernova
Iron is at the peak of the binding energy curve. Fusing it would absorb energy, not release it. With nothing to hold it up, the iron core collapses in less than a second. The outer layers fall in, rebound and are blown into space in an explosion that can briefly outshine a whole galaxy.
What is left
The collapsed core is a neutron star: more than the mass of the Sun packed into a ball about 20 km across, at the density of an atomic nucleus (E.1). If the core is more massive still, nothing can stop the collapse, and it becomes a black hole.