Answer:
Generated by the motion of molten iron in Earth's core, the magnetic field protects our planet from cosmic radiation and from the charged particles emitted by our Sun.