Answer:
The magnetic field of earth plays a dynamic role in protecting lives that exists on the planet. The sun emits the solar wind which carries the highly charged particles in them. They radiate in all the directions in space. This solar wind has the capacity to remove the earth's atmosphere. These solar wind also contains those harmful ultra-violet radiation that are released from the sun that can cause various skin diseases to humans. This magnetic field acts as a barricade that deviates the path of the solar wind in another direction, without affecting the planet.
Thus, the earth's magnetic field helps to protect lives from the solar wind.