The orbital evolution of the giant planets after nebular gas was eliminated from the Solar System but before the planets reached their final configuration was driven by interactions with a vast sea of leftover planetesimals. Several variants of planetary migration with this kind of system architecture have been proposed.
Here, we focus on a highly successful case, which assumes that there were once five planets in the outer Solar System in a stable configuration: Jupiter, Saturn, Uranus, Neptune, and a Neptune-like body. Beyond these planets existed a primordial disk containing thousands of Pluto-sized bodies, similar to 50 million D > 100 km bodies, and a multitude of smaller bodies.
This system eventually went through a dynamical instability that scattered the planetesimals and allowed the planets to encounter one another. The extra Neptune-like body was ejected via a Jupiter encounter, but not before it helped to populate stable niches with disk planetesimals across the Solar System.