A star begins with a contest. Gravity pulls inward while hot gas and radiation push outward. Deep in the core, pressure and temperature become high enough for hydrogen nuclei to fuse. A small amount of mass becomes energy, and the star shines.
As massive stars age, they can fuse progressively heavier nuclei in layered shells. Hydrogen gives way to helium; later stages build carbon, oxygen, silicon, and elements near iron. Each new stage runs faster than the one before it.
Iron changes the story. Fusing iron does not release the energy needed to hold up the star. The core collapses, and a supernova can scatter the star’s elements across space. Later stars, planets, oceans, bones, and blood form from that enriched material.