The Moon affects Earth's tides because its gravity is strong enough, and its distance from Earth is small enough, to produce a measurable difference in gravitational acceleration between different parts of Earth. Every portion of Earth is attracted toward the Moon, but the attraction is not equally strong everywhere.
The side of Earth nearest the Moon is closer and therefore experiences a slightly stronger lunar gravitational acceleration than Earth's centre, while the far side is farther away and experiences a slightly weaker acceleration. This difference across Earth's diameter is called the lunar tidal force. Because the difference acts over a large distance, it produces a stretching tendency in the Earth Moon system.
Ocean water responds especially readily because it is fluid and can redistribute itself, producing regions of relatively elevated water associated with the lunar tidal pattern. There is also a far side tidal component that cannot be explained simply by saying that water on the far side is being pulled away from the Moon. Earth and Moon orbit their common centre of mass, so the whole Earth experiences an orbital acceleration. Relative to that accelerating Earth centred frame, the lunar gravitational acceleration varies from place to place, producing the characteristic pair of tidal bulges in the simplest model.
The strength of the Moon's tidal effect is related to the gradient of its gravitational field rather than merely to the total gravitational attraction it exerts on Earth. Newton's law of universal gravitation states that gravitational acceleration decreases with the square of distance, but the tidal effect is approximately proportional to the inverse cube of the distance for a distant perturbing body.
This stronger dependence on distance explains why the Moon, despite being vastly less massive than the Sun, has the larger tidal influence. The Sun is about 400 times farther from Earth than the Moon and roughly 333,000 times as massive as Earth, while the Moon is much closer and therefore produces a larger gravitational gradient across Earth's diameter. The relevant comparison is consequently between differential gravitational effects, not between the total gravitational forces exerted by the two bodies.
This is one reason the Moon is central to terrestrial tides. The Moon's changing distance from Earth also changes the magnitude of its tidal forcing. When the Moon is closer, its tidal influence is somewhat stronger; when it is farther away, the influence is somewhat weaker.
The Moon's orbital motion also explains why tides generally follow a lunar rather than purely solar daily schedule. Earth rotates once relative to distant stars in approximately 23 hours 56 minutes, but during that rotation the Moon advances eastward along its orbit. Earth must therefore rotate for somewhat longer before the same location on Earth is again approximately aligned with the Moon. This produces a lunar day of roughly 24 hours 50 minutes.
In the simplified two high tide model, successive high tides are consequently separated by about 12 hours 25 minutes. Real locations can depart considerably from this idealised timing because ocean basins respond dynamically to the astronomical forcing. The Moon's orbit is also inclined relative to Earth's equatorial plane, so the two tidal bulges do not always align symmetrically with the equator. The Moon's changing orbital position produces several tidal frequencies that are used in harmonic tidal prediction. Thus the Moon affects tides not only through its gravity but through the continuous geometry and motion of the Earth Moon system.
The common illustration of two ocean bulges is useful but incomplete. If Earth were covered by a perfectly deep global ocean and had a simplified geometry, the lunar tidal potential could generate an elegant global pattern. Actual Earth is divided by continents into ocean basins with very different shapes and depths. Water cannot instantly rearrange itself into an ideal pair of bulges, and the tidal disturbance propagates through the oceans as a long gravity wave.
Earth's rotation causes the response to be influenced by the Coriolis effect, while friction and interactions with coastlines affect the amplitude and phase of the tidal signal. In some regions the tidal wave rotates around amphidromic systems rather than simply travelling directly toward or away from the Moon. Consequently, a location may experience one, two or mixed numbers of significant high and low waters per day depending on its tidal regime. The Moon provides the astronomical forcing, but local geography determines the observable expression. This distinction is essential when explaining why two coastal places can have very different tides even though both are affected by the same Moon.
The Moon's effect is also involved in spring and neap tides because lunar and solar tidal forces combine. At new Moon, the Moon lies approximately between Earth and the Sun, while at full Moon Earth lies approximately between the Sun and Moon. In both configurations the principal lunar and solar tidal components reinforce one another, producing larger tidal ranges called spring tides.
Around the first and third quarter phases, the Sun and Moon are approximately at right angles relative to Earth, so their principal tidal effects partially counteract one another and smaller tidal ranges called neap tides occur. These effects do not mean that the Moon's gravitational force itself becomes dramatically stronger at full Moon than at other phases. Instead, the important change is the geometric relationship between the lunar and solar tidal potentials. The lunar cycle therefore changes tidal range through changing alignment rather than through the Moon changing its intrinsic gravitational strength. The terminology of spring and neap tides refers to tidal amplitude and has no direct connection with the spring season.
The Moon also affects tides in solid Earth. The rocky Earth is not perfectly rigid, so lunar and solar gravitational potentials deform the planet slightly. These solid Earth tides can produce small vertical and horizontal movements that are measurable with sensitive instruments. Ocean tides are much more visually obvious because water can move over large distances, but the solid Earth response demonstrates that tidal forces are a general gravitational phenomenon rather than something unique to oceans.
Atmospheric tides can also occur because the atmosphere responds to gravitational and thermal forcing, although atmospheric tidal behaviour is more complex than the simple oceanic picture. Groundwater levels can sometimes respond measurably to tidal loading and deformation. The Moon's influence therefore extends through multiple components of the Earth system. In geophysics, measurements of tidal deformation can be used to study Earth's elastic properties, internal structure and hydrological behaviour.
Historically, explanations of tides evolved alongside gravitational theory. Ancient observers recognised strong correlations between tides and the Moon, and many cultures developed practical tidal knowledge for fishing and navigation. A major theoretical advance came with Newtonian gravitation, which provided a quantitative explanation of why the Moon and Sun produce tidal forces. Later mathematical developments treated the oceans as dynamical systems rather than as passive bodies of water.
Laplace developed important mathematical theories of tides, and subsequent oceanographic work incorporated Earth's rotation, basin geometry, friction and resonance. Modern tidal science combines celestial mechanics, fluid dynamics, geodesy, oceanography and numerical modelling. Satellite observations, tide gauges and global ocean models now allow scientists to resolve tidal constituents across much of the planet. The historical development illustrates an important scientific principle: recognising a correlation between lunar position and tides was an early observational achievement, but explaining the mechanism required a physical theory of gravitational fields and the dynamical response of Earth.
The Moon's tidal influence has wider consequences because tidal friction transfers energy within the Earth Moon system. Ocean tides and associated friction gradually dissipate mechanical energy as heat and modify Earth's rotational state. Earth's rotation is slowing very gradually on geological timescales, while the Moon is gradually receding from Earth. These changes are not uniform over short periods because atmospheric circulation, ocean dynamics, earthquakes, melting ice and other processes also affect Earth's rotation.
The present tidal system is therefore part of a long term coupled evolution of Earth and Moon. For practical purposes, however, the most important point is that the Moon affects tides because its nearby gravitational field is spatially nonuniform across Earth. The near side is accelerated more strongly toward the Moon than Earth's centre, while the far side is accelerated less strongly, creating a differential effect. Earth's rotation, the Moon's orbital motion, the Sun's contribution and the structure of the oceans then transform that differential gravitational forcing into the complex tides measured around the world.