The tides are primarily caused by the gravitational forces between the Earth, the Moon, and the Sun. The gravitational pull of the Moon and the Sun creates bulges in the Earth's oceans, leading to the rise and fall of the water levels, which we observe as high and low tides.