Question: what is the relationship between a permanent magnet and the earth?
Answer: The crust of the Earth has some permanent magnetization, and the Earth's core generates its own magnetic field, sustaining the main part of the field we measure at the surface. So we could say that the Earth is, therefore, a "magnet."