The sun’s huge mass gives it a strong gravitational pull. Because of this gravitational pull, planets that are closer to the sun tend to have different motion than planets that are further away from the sun, because the gravity becomes stronger the closer you get. I hope this helped!