Planetary nebulae are luminous emission nebulae consisting of expanding shells of gas and dust ejected from dying stars during the late stages of their evolution. Despite its name Planetary Nebula, it has no relation to planets. Planetary nebulae are formed when a star, similar in mass to our Sun, sheds its outer layers in a beautiful and intricate display, leaving behind a hot, compact core known as a white dwarf.