An expanding shell of ionized gas ejected from a red giant star in the late stages of stellar evolution. Despite the name, it has no connection to planets. The glowing gas is illuminated by the hot core of the dying star.
Source: science.nasa.gov
27/04/1998

How can a round star make a square nebula? This conundrum came to light with the discovery of planetary nebulae like IC 4406. IC 4406 is most probably cylindrical, with its square appearance the result of our vantage point in viewing the cylinder. Hot gas is known to be flowing out the ends of the cylinder, while filaments of dark dust and molecular gas lace the bounding walls. The star primarily responsible for this interstellar sculpture can be found in the nebula's center. In a few million years, the only thing left visible in IC 4406 will be a fading white dwarf star.