After a few billion years, when nuclear fusion is no longer energetically favorable, essentially when the star runs out of fuel in the form of light elements, the furnace cools and the outward pressure that kept the giant atmosphere aloft is no longer up to the task. The star begins to collapse under its own weight.

