How does a Magnetic Compass Work?

A magnetic compass is a great device to have if you are lost. The earth has a magnetic field deep inside the core which attracts the needle on the compass so that it will always point to the north.