What role do dying stars play in the galactic material cycle?

Answer

They eject heavier elements that enrich the ISM

Old stars die, often exploding as supernovae, which enriches the Interstellar Medium by ejecting heavier elements, which are the building blocks for dust and planets.

What role do dying stars play in the galactic material cycle?
galaxyastronomystarsgasdust