For stars with less than 8 solar masses:
* Red Giant: The star expands and cools, becoming a red giant. This is due to the core running out of hydrogen fuel and starting to fuse helium.
* Horizontal Branch: Some stars enter a horizontal branch phase where they fuse helium in their core.
* Asymptotic Giant Branch (AGB): The star expands even further, becoming an AGB star. This is due to the core running out of helium and starting to fuse carbon.
* Planetary Nebula: The outer layers of the star are ejected, forming a planetary nebula.
* White Dwarf: The remaining core collapses into a dense, hot white dwarf.
For stars with 8 to 25 solar masses:
* Red Supergiant: The star expands even further than a red giant, becoming a red supergiant.
* Supernova: The star explodes as a supernova, leaving behind a neutron star or a black hole.
For stars with more than 25 solar masses:
* Supernova: The star explodes as a supernova, leaving behind a black hole.
So, the answer to your question depends on the mass of the main sequence star. But in general, the phases after the main sequence involve the star expanding, cooling, and eventually expelling its outer layers, leaving behind a dense remnant.