Answer
Earth's magnetic field, also known as the terrestrial magnetosphere, is the magnetic field that surrounds the planet Earth. It is generated by the electric current that flows in the conductive molten iron and nickel of Earth's outer core. The magnetic field protects Earth's atmosphere from the solar wind, which is a stream of charged particles from the Sun.