In a wide expanse of space, gravity drew dust and gas together to create the young solar system. The sun formed first from the vast material, with the planets close behind. ... In the center, the material clumped together to form a protostar that would eventually become the sun.