About 4. 6 billion years ago, the Solar System formed from a cloud of dust and gas collapsing in on itself due to gravity.