STEP-BY-STEP ANSWER:
Step 1: A cloud of gas and dust, known as the solar nebula, begins to collapse under its own gravity.
Step 2: As the nebula collapses, conservation of angular momentum causes it to spin faster and flatten into a disk.
Step 3: Most of the mass concentrates at the center to form the proto-Sun, while the remaining material in the disk starts to coalesce into planetesimals.
Step 4: Through the process of accretion, these planetesimals collide and merge to form the planets and other bodies in the solar system.
Final Answer: The collapse of the solar nebula, through processes driven by angular momentum conservation and accretion, led to the formation of the Sun and the subsequent development of the solar system.