Gravity is the force that keeps all of the planets, dwarf planets, moons, asteroids and comets orbiting the Sun. The force of gravity is inversely proportional to the distance of any two objects. This means that objects that are close to the Sun experience a stronger gravitational pull, and therefore, orbit the Sun at a greater speed