* For low-mass stars (like our Sun): They become white dwarfs. These are dense, hot, and slowly cooling remnants of the star's core.
* For medium-mass stars: They go through a supernova explosion, leaving behind a neutron star - a very dense object composed mostly of neutrons.
* For high-mass stars: They also go through a supernova, but leave behind a black hole - a region of spacetime with gravity so strong that nothing, not even light, can escape.
So, it depends on the star's initial mass!