Some astronomers believe the whole solar system formed from a single flat cloud of gas, while others believe it formed when a huge object passed near the Sun, pulling a stream of gas off of the Sun. Astronomers theorize the planets then formed from this gas stream.
Source: tatoeba (3955430)