1 When a star runs out of hydrogen fuel in its core, fusion slows, outward pressure decreases, and gravity causes the core to contract and heat up, leading to the expansion of outer layers and the formation of a red giant.
“eventually a star runs out of hydrogen fuel in its core fusion slows down and the outward pressure decreases gravity takes over and the core contracts as the core shrinks it heats up this heat causes the outer layers of the star to expand dramatically turning the star into a red giant”