Answer :
According to this theory, the Sun and all the planets of our Solar System began as a giant cloud of molecular gas and dust. Then, about 4.57 billion years ago, something happened that caused the cloud to collapse. This could have been the result of a passing star, or shock waves from a supernova, but the end result was a gravitational collapse at the center of the cloud.