Nebulae are massive clouds of gas and dust in space. They are the birthplaces of stars and planets. Some nebulae are formed from exploded stars, spreading elements into space that help form new stars and planets.