Earth is surrounded by a magnetic field and this magnetic field is known as earth's magnetic field.
Sometimes it is also known as a ‘geomagnetic field’.
This magnetic field is created by the rotation of the earth and the earth's core.
It protects the earth from harmful particles in space by forming a shield-like structure around the earth.
The magnetic field creates magnetic poles that are near to the geographical poles.
A compass uses the geomagnetic field to find directions.
Many migratory animals also use the field when they travel long distances each spring and fall. The magnetic poles will trade places during a magnetic reversal.