Once you've got the makings of a star, gravity draws leftover gas and dust into a giant swirling disk. The dust continues to stick together, clumping into rocky asteroids, which eventually become orbiting rocky planets. And voila: a solar system!
Neil deGrasse Tyson