What is the major cause of the Earth’s magnetic field?

magnetic materials on the Earth’s surface

charged particles from the sun

the Earth’s magnetic lithosphere

the Earth’s liquid outer core