The Sun's gravitational pull is the primary force keeping the Earth in orbit around it. Even though the Sun is very far away, its enormous mass (it's about 333,000 times more massive than the Earth) means it exerts a strong gravitational force on Earth.
Here's why:
* Gravity's strength decreases with distance, but not completely: While gravity weakens with distance, it never completely disappears. It just gets weaker the farther away you are from the source of the gravity.
* The Sun's immense mass counteracts the distance: Despite being far away, the Sun's immense mass makes its gravitational pull on Earth significant enough to keep Earth in orbit.
In fact, if the Sun's gravitational pull were to disappear, Earth would fly off into space in a straight line!