Tides in the ocean are primarily caused by the gravitational forces exerted by the Moon and the Sun on the Earth. The gravitational pull of the Moon causes the water on the Earth's surface to bulge towards the Moon, creating high tide, while the areas on the Earth where water is not bulging experience low tide. The combined gravitational pull of the Moon and the Sun results in the daily tidal cycle that we observe in the oceans.