Winds blowing off a dying star

Stars like our Sun eject large amounts of gas and dust into space, containing various elements and compounds. Asymptotic giant branch — AGB — phase stars, near their end of life, are particularly significant sources of such substances in our galaxy.