Earliest records show a spoon shaped compass made of lodestone or magnetite ore, referred to as a "South-pointer" dating back to sometime during the Han Dynasty (2nd century BCE to 2nd century CE).
These simple instruments were made from a lodestone ... and movement of the molten metal at its core. A compass contains a tiny piece of magnetized material that is attracted to its opposite ...