The Sun's gravity is the force that prevents the planets from floating off into space, guiding their orbits due to its strong gravitational pull. Earth and other planets are held in stable orbits as the Sun's gravity counteracts their motions. While other celestial bodies impact gravitational forces, the Sun remains the primary influence for planetary motion. ;