Stellar evolution
Sooner or later, almost all of the hydrogen at the center has changed to helium. This causes the nuclear reaction in the middle of the star to stop and the center will start to get smaller due to the star's gravity. The layer of the star just outside the center will begin to change hydrogen to helium, releasing energy.