Like a raindrop forming in a cloud, a star forms in a diffuse gas cloud in deep space. As the star grows, its gravitational pull draws in dust and gas from the surrounding molecular cloud to form a swirling disk called a "protoplanetary disk." This disk eventually further consolidates to form planets, moons, asteroids, and comets.