D. the Moon
The primary body that influences Earth's ocean tides is the Moon. Its gravitational pull causes the water in the oceans to bulge, creating high and low tides. The Sun also has an influence on tides, but it is much less significant than that of the Moon.