The force of gravity decreases as the square of the distance between objects increases.
$$F_g \propto \frac{1}{r^2}$$