A closer look at Solar nebula
The solar system began in a collapsing region of gas and dust.
Rotation flattened much of the material into a disk around the forming Sun. The disk provided a shared reservoir from which planets and smaller bodies assembled.
The major planets mostly orbit in the same direction and close to one plane. A rotating disk helps explain both patterns at once. For the surrounding ideas, see Protoplanetary disk and Condensation sequence.
OpenStax · Astronomy 2e · 14.3 Formation of the Solar System · How did our Solar System form? - NASA Science · Image and attribution
Want to learn more about Solar nebula? Nebular hypothesis on Wikipedia.

