It was believed that the magnetic field to be generated deep down in the Earth's core. But the truth is the flow of liquid iron generates electric currents, which produces magnetic fields.
But the truth is no one really knows for certain so the only thing we know is that the spin of the earth is the cause of its magnetic field
Hope this helped :)
Have a great day
The geosphere is considered that portion of the Earth system that includes the Earth's interior, rocks and minerals, landforms and the processes that shape the Earth's surface. The geosphere may be taken as the collective name for the
- hydrosphere (The hydrosphere is the liquid water component of the Earth. It includes the oceans, seas, lakes, ponds, rivers, and streams. The hydrosphere covers about 70% of the earth surface)
- cryosphere (The cryosphere is the frozen water part of the Earth system. The Beaufort Sea, north of Alaska. One part of the cryosphere is ice that is found in water),
- atmosphere( is a layer or a set of layers of gases surrounding a planet or other material body)
- lithosphere is the substantial, outer part of the Earth. The lithosphere includes the brittle upper portion of the mantle and the crust, the outermost layers of Earth’s structure. It is bounded by the atmosphere above and the asthenosphere below. The lithosphere is further subdivided into tectonic plates. The lithosphere is the most rigid of Earth’s layers.
It's the mitochondria, the "powerhouse of the cell".