 The earliest material found in the Solar System is dated to 4 @.@ 5672 ± 0 @.@ 0006 billion years ago ( Gya ) . By 4 @.@ 54 ± 0 @.@ 04 Gya the primordial Earth had formed . The formation and evolution of the Solar System bodies occurred along with those of the Sun . In theory , a solar nebula partitions a volume out of a molecular cloud by gravitational collapse , which begins to spin and flatten into a circumstellar disk , and then the planets grow out of that disk along with the Sun . A nebula contains gas , ice grains , and dust ( including primordial nuclides ) . In nebular theory , planetesimals form by accretion . The assembly of the primordial Earth proceeded for 10 – 20 Ma . 
