The Earth generates its magnetic field more the way an electromagnet does, rather than a permanent magnet.
(The Earth; generates; its magnetic field) (an electromagnet; does; )
The Earth an electromagnet
generates does
its magnetic field