A protoplanet is a large planetary embryo that originated within a protoplanetary disc and has undergone internal melting to produce a differentiated interior. Protoplanets are thought to form out of kilometer-sized planetesimals that gravitationally perturb each other's orbits and collide, gradually coalescing into the dominant planets.
In the case of the Solar System, it is thought that the collisions of planetesimals created a few hundred planetary embryos. Such embryos were similar to Ceres and Pluto with masses of about 1022 to 1023 kg and were a few thousand kilometers in diameter. Over the course of hundreds of millions of years, they collided with one another. The exact sequence whereby planetary embryos collided to assemble the planets is not known, but it is thought that initial collisions would have replaced the first "generation" of embryos with a second generation consisting of fewer but larger embryos. These in their turn would have collided to create a third generation of fewer but even larger embryos. Eventually, only a handful of embryos were left, which collided to complete the assembly of the planets proper.
Early protoplanets had more radioactive elements, the quantity of which has been reduced over time due to radioactive decay. Heating due to radioactivity, impact, and gravitational pressure melted parts of protoplanets as they grew toward being planets. In melted zones their heavier elements sank to the center, whereas lighter elements rose to the surface. Such a process is known as planetary differentiation. The composition of some meteorites show that differentiation took place in some asteroids.
According to the giant impact hypothesis the Moon formed from a colossal impact of a hypothetical protoplanet called Theia with Earth, early in the Solar System's history.