Formation and evolution of the Solar System in turn far closer to the Sun when they formed (most likely in the range of 15–20 AU), and in 50% of simulations ended up opposite locations, with Uranus farther from the Sun than Neptune. According to the Nice model, after the formation of the Solar System, the orbits of all the giant planets continued to change slowly, influenced by their interaction with the large number of remaining planetesimals. After 500–600 million years (about 4 billion years ago) Jupiter and Saturn fell into a 2:1 resonance: Saturn orbited the Sun once for every two Jupiter orbits. This resonance created a
Jupiter to their star than Mercury is to the Sun, and sometimes also Jupiter-mass gas giants close to their star. Earth and its neighbor planets may have formed from fragments of planets after collisions with Jupiter destroyed those super-Earths near the Sun. As Jupiter came toward the inner Solar System, in what theorists call the grand tack hypothesis, gravitational tugs and pulls occurred causing a series of collisions between the super-Earths as their orbits began to overlap. Jupiter moving out of the inner Solar System would have allowed the formation of inner planets, including Earth. Jupiter is composed primarily of gaseous