When stars as massive as the Sun die they swell up to become red giants and begin shedding their outer layers into space, forming an expanding shell of gas.
Our own Sun may one day end up resembling this object, NGC 2022, known as a planetary nebula.
This image was captured by the Hubble Space Telescope.
Image credit: ESA/Hubble & NASA, R. Wade