The solar system was formed from a condensed region in a local dust cloud. Nearby supernova explosions perturbed the equilibrium of the dust cloud over five billion years ago, creating a nugget of density at the center of which our Sun formed. We can observe these clouds today in other regions of the galaxy -they are called Bok globules. Because they are relatively dense dust clouds, Bok globules block out light from objects within and behind them, being a subcategory of dark nebulae. This makes it impossible to directly observe the formation of new stars, although the simulations of astrophysicists give us a good idea of how it works.
Starting out as an irregular cloud, once a center of gravity was established, many of the dust particles in the cloud making up the early solar system would have begun to move into more regular orbits, circling the newborn star as a protoplanetary disc. Within the cloud, large chunks of rock condensed into the planets, which proceeded to sweep their orbits clean of material, integrating it into themselves. Jupiter, being the most massive of the planets, probably did a lot of the sweeping. Many astronomers believe that Jupiter may have in fact made life on Earth possible, by absorbing much of the stray rocks in our solar system, thereby preventing them from impacting other planets such as our own.
Starting out as an irregular cloud, once a center of gravity was established, many of the dust particles in the cloud making up the early solar system would have begun to move into more regular orbits, circling the newborn star as a protoplanetary disc. Within the cloud, large chunks of rock condensed into the planets, which proceeded to sweep their orbits clean of material, integrating it into themselves. Jupiter, being the most massive of the planets, probably did a lot of the sweeping. Many astronomers believe that Jupiter may have in fact made life on Earth possible, by absorbing much of the stray rocks in our solar system, thereby preventing them from impacting other planets such as our own.