Video explains the purpose of Earth's magnetosphere
The magnetosphere is a region wherein charged particles are controlled by the Earth's magnetic field. According to the video, the Sun releases radioactive, charged plasma called coronal mass ejection (CME) which are deflected by the magnetosphere. Further, it acts as a shield against cosmic rays emitted from other space objects, which can otherwise cause permanent damage to brain cells.