The Nebular Hypothesis postulates that the Solar System formed from a contracting cloud of gas and dust (a nebula). As the nebula contracted under gravity, it rotated faster and flattened into a disk. The central part formed the proto-Sun, and the material in the disk accreted and condensed into planetesimals, which further combined to form the planets orbiting the Sun.