Cosmos

About 4.6 billion years ago, a cloud of gas and dust existed at the site of the Solar System.

An excerpt from the article 25 facts about Cosmos

According to one theory, the balance of this cloud was upset by the explosion of a nearby supernova. Under the influence of this force, the cloud began to move and concentrated matter began to form inside. Under the influence of its gravity, the cloud began to collapse and rotate faster and faster, and the temperature inside it increased. Under the influence of the rotation speed, the cloud began to flatten into a disk and at one point the temperature and pressure in the center of the cloud were so high that a new star–the Sun–was born there.