How was the solar system formed?
Solar system formed from a huge cloud of gas and dust called Nebula.
Due to gravity it began to shrink ( Gravitational collapse) and stated spinning. like a disk due to angular momentum.So most mass remained at center and formed the Sun. ..remaining gas and dust formed planets.
iPicture credit cocffeshopapologetic.