The formation and evolution of the Solar System is estimated to have begun 4.568 billion years ago with the gravitational collapse of a small part of a giant molecular cloud . The Solar System formed from the gravitational collapse of a giant molecular cloud 4.568 billion years ago .