The nebula is the glowing remain of the outer hydrogen shell, shed off from a red super-giant sun and exposing its helium burning center, which is called a Wolf-Rayet star. Strong stellar winds from the star compressed and stimulated the surrounding gas and dust, and the strong ultra violett radiation excited it to glow.
In a few million years the star will end its life in a super nova.