Around 4.6 billion years ago, the solar system was little more than a giant ball of gas and dust. Over the next few million years, this "solar nebula" underwent a huge transformation, flattening into a disk of matter that then condensed to form the central sun and orbiting planets.