Salutations!
Earth magnetic field results from movement in the -----
Earth magnetic field results from movement in the outer core. Due to the huge heat pressure of the inner core, this results the outer core to melt. Outer core's movement is the reason of the existence of Earth's magnetic field.
Hope I helped (:
Have a great day!