The magnetotail is the part of the Earth’s magnetic field that stretches out into space on the side facing away from the Sun.