The correct answer is:
D. Gravitational forces brought together several moon-sized bodies, called planetesimals, to form larger bodies that became planets.
In the early solar system, gravity played a crucial role in the process of accretion, where dust and small particles collided and stuck together, forming larger and larger bodies (planetesimals), ultimately leading to the formation of planets.