Start as nebulae, collapse due to gravity, heat up and form protostars, eventually become stable stars, when a medium-sized star like the sun runs out of fuel, it turns into a red giant, expanding and destroying nearby planets, after the red giant phase, the star collapses again and becomes a white dwarf, which eventually turns into a black dwarf, very large stars become red supergiants, which explode in a supernova, scattering heavy elements throughout the universe, the remnants of a supernova can form a black hole or a neutron star, depending on the mass of the original star