The region surrounding a celestial body where its magnetic field controls the motions of charged particles. The Earth's magnetic field is dipolar in nature. That is, it behaves as if produced by a giant bar magnet located near the center of the planet with its north pole tilted several degrees from Earth's geographic north pole.
The Earth's magnetic field presents an obstacle to the solar wind, as a rock in a running stream of water. This obstacle is called a bow shock. The bow shock slows down, heats, and compresses the solar wind, which then flows around the rest of Earth's magnetic field.