The Solar System is about 4.6 billion years old. It formed by gravity in a large molecular cloud. Most of this matter gathered in the center, and the rest flattened into an orbiting disk that became the Solar System. It is thought that almost all stars form by this process.