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.
Planetary nebulae are one of the main ways in which elements heavier than hydrogen and helium are dispersed into space after their creation in the hearts of stars. Eventually some of this out-flung material may form new stars and planets.
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.