Here's a breakdown:
* The Sun's Gravity: The Sun is a massive object, and its immense gravity pulls on everything around it, including Mars. This gravitational pull is what keeps Mars in orbit.
* Centripetal Force: Mars is also constantly moving, and this motion creates a force called centripetal force that pulls it outwards, away from the Sun.
* Balance: The Sun's gravity is balanced by the centripetal force created by Mars's motion. This balance is what keeps Mars in a stable orbit around the Sun, preventing it from flying off into space or spiraling into the Sun.
Imagine a ball on a string being swung around your head. The string represents the Sun's gravity, and the motion of the ball represents Mars's orbital movement. The tension in the string (gravity) keeps the ball from flying off, and the ball's motion (centripetal force) prevents it from falling into your hand.
This is a simplified explanation, but it captures the essence of how gravity keeps Mars in orbit around the Sun.