Gravity is a force.
Although gravity pulls every object in the universe towards every other one, the effect is much stronger for things that are close together. It is also stronger for more massive things. Try the following animation to see what we mean.
You can also see how the effect of gravity changes on different planets in the Solar System, using the following tools: