As the star exhausts its hydrogen fuel, it leaves the main sequence and expands into a Red Giant. The core contracts and heats up, while the outer layers expand and cool. In this phase, the star begins to fuse helium into heavier elements like carbon and oxygen.