A gravitational force between objects depends on two things- their masses and the distance between them. So the greater the mass and the less distance there is, the more gravitational force and is the mass is less and the distance is great the gravitational force is weak