What is the primary function of Earth's magnetic field regarding cosmic radiation?

Answer

Deflecting the majority of charged particles away from the planet

The Earth's magnetic field, or magnetosphere, serves as the first line of defense by actively pushing away most of the incoming charged particles before they can penetrate deeper into the atmosphere.

What is the primary function of Earth's magnetic field regarding cosmic radiation?
SpaceEarthimpactradiationlife