The Crab Nebula is a supernova remnant.Its result of a supernova. The star that  was seen to explode in 1054 AD. This supernova explosion was recorded by Chinese and Indian astronomers.
Three thousand light years away,a dying star throws off shells of glow'ing gas.
From Nasa
From Nasa