According to this theory, the Sun and all the planets of our Solar System began as a giant cloud of molecular gas and dust, But about 4.57 billion years ago something horrible happened to caused the clouds to collapse.