Flexi Says: All objects in the universe have an attraction to each other. This attraction is known as gravity. The strength of the force of gravity depends on two things: the mass of the objects and the distance between the objects. As an object's mass increases, the attraction increases. As the distance between the objects increases, the attraction decreases. If the Moon and the Sun were at the same distance from Earth, the Earth would be more attracted towards the Sun.The mass of the Sun is 27 million times greater than the Moon and 330,000 times greater than Earth. Based on mass alone, the gravity of the Sun is much stronger than the Earth or Moon.