The boundary between a planet’s magnetosphere and the external magnetic field of the solar wind. The upwind region of the magnetopause usually lies below a bow shock, whose distance from the planet depends on the solar wind’s intensity and field direction. The Earth’s magnetopause normally lies about 64 000 km (10 Earth radii) upwind, but may be driven closer by disturbed solar wind conditions following flares or coronal mass ejections.