Why is the earth's magnetic field important to being able to have life on earth?

A) Planets use energy from the magnetic field to do photosynthesis.
B) Without the magnetic field people would float away from the earth.
C) The field holds iron on earth so people do not become anemic.
D) It protects the earth from solar winds which contain particles which would destroy the atmosphere and end life on earth.