When a star ages and the red giant phase of its life comes to an end, it starts to eject layers of gas from its surface leaving behind a hot and compact white dwarf.
Sometimes this ejection results in elegantly symmetric patterns of glowing gas, but the nebula named NGC 6326 is much less structured.
This object is located in the constellation of Ara, the Altar, about 11,000 light-years from Earth, according to NASA.
The picture was created from images taken using the Hubble Space Telescope's Wide Field Planetary Camera 2.
The vivid blue and red hues come from material including ionised oxygen and hydrogen glowing under the action of the fierce ultraviolet radiation from the still hot central star.