After exhausting the hydrogen in its core, a star leaves the main sequence and enters the red giant phase. The core contracts and heats up, causing the outer layers to expand and cool, which gives the star a red appearance. In this phase, helium fusion may commence in the core, while hydrogen fusion continues in a surrounding shell.