Lagrange points
Five positions where the gravity of two large bodies and the orbital motion balance. JWST sits at the Sun-Earth L2, 1.5 million km away.
In a system of two large bodies, such as the Sun and Earth, there are five places where the gravity of both and the orbital motion balance, so that a small object can stay in step with them. They are named L1 to L5. L1, L2 and L3 lie on the line through the two bodies and are unstable: a spacecraft there drifts away unless it makes small corrections. L4 and L5, 60° ahead of and behind the smaller body, are stable, and Jupiter's Trojan asteroids gather there.
L1, about 1.5 million km from Earth toward the Sun, gives an uninterrupted view of the Sun and hosts solar observatories such as SOHO. L2, the same distance on the far side, keeps the Sun, Earth and Moon in the same direction, which makes it a calm, cold place for telescopes, so the James Webb Space Telescope, Gaia and Euclid all operate there.