Here's how it works:
* Moon's Gravity: The Moon's gravity is the primary driver of tides. Because the Moon is closer to Earth than the Sun, its gravitational pull on the Earth's oceans is stronger. This pull creates a bulge of water on the side of the Earth facing the Moon. A corresponding bulge also forms on the opposite side of the Earth, due to inertia.
* Sun's Gravity: The Sun also exerts a gravitational pull on the Earth's oceans, but it's weaker than the Moon's pull due to its greater distance. The Sun's gravity contributes to the tidal bulges, making them larger when the Sun, Moon, and Earth are aligned (during new and full moons).
* Spring Tides: When the Sun, Moon, and Earth are aligned, their gravitational forces combine to create larger tidal bulges called spring tides. This happens during new and full moons.
* Neap Tides: When the Sun, Moon, and Earth form a right angle, the gravitational forces partially cancel each other out, resulting in smaller tidal bulges called neap tides. This happens during quarter moons.
So, while the Moon's gravity is the primary driver, the Sun also plays a significant role in creating the tidal formations we experience.