The center of the earth is made up of two layers outer core and the inner core
The outer core is the third layer of earth It is mainly made up of the metals iron and nickel
The outer core is responsible for earths magnetic fields
The magnetic field protect the earth from harmful particles that come from the sun