The red giant phases are temporary. They are shorter than the billions of years a star spends on the main sequence. Some of their outer layers will blow away, leaving interstellar gas and dust circling the star. In time, most red giants will become white dwarfs. Very large red giants (red supergiants) become neutron stars or black holes.