Earth’s magnetic field: Explained

Earth’s magnetic field originates in the outer core and extends out into the magnetosphere — a region of space that helps protect Earth from space weather.