The mechanism of tidal locking
Gravity decreases with distance (as 1/r²). The side of the Moon closer to Earth experiences slightly stronger gravity than the far side. This differential gravity — the tidal force — stretches the Moon slightly along the Earth-Moon axis, creating a tidal bulge. When the Moon was young and rotating faster than it orbited, this bulge was carried ahead of the Earth-Moon line by the Moon's rotation. Earth's gravity pulled this misaligned bulge back toward the Earth-Moon axis, applying a torque that slowed the Moon's spin. This continued until the bulge pointed permanently toward Earth — synchronous rotation. See our tidal force dictionary entry and tides guide.
Other tidally locked objects in the solar system
Tidal locking is common throughout the solar system. All large moons of the giant planets are tidally locked to their host planet — Io, Europa, Ganymede, Callisto (all locked to Jupiter); Titan, Enceladus, and most large Saturnian moons (locked to Saturn). Pluto and Charon are mutually tidally locked — both show the same face to each other, the only example of a doubly locked system in the solar system. Mercury is in a special 3:2 spin-orbit resonance (3 rotations per 2 orbits) rather than 1:1, stabilised by Mercury's high orbital eccentricity. See our Jupiter moons guide.
Tidal locking and exoplanet habitability
The ~300 million red dwarf stars in the Milky Way are targets of intense exoplanet searches — their small size makes transits and radial velocity signatures easier to detect, and they live for trillions of years. But their habitable zones are close enough that most Earth-sized planets there are likely tidally locked. This creates a world of permanent day and permanent night, with a terminator zone (the boundary between) that might be perpetually temperate. Atmospheric dynamics — whether winds can transport heat to the nightside before it freezes out — determine habitability. General circulation models suggest this is possible for sufficiently thick atmospheres. TRAPPIST-1b through 1h, all within 0.06 AU of their star, are among the best candidates. See our habitable zone guide.