A nebula is an interstellar cloud of dust, gas, and plasma that is the first stage of star formation. Nebulae form from the gravitational collapse of gas clouds in space. As gas and dust clump together in nebulae, it can form stars and planetary systems. Some nebulae are formed from stellar explosions like supernovae, which throw off ionized material that glows.