We know that the earth is a huge magnet and that another magnet can be used to find direction relative to our ground position. This is possible because two magnets interact in a peculiar way depending on their force fields. So if a magnet is allowed to rotate freely under the influence of the earth’s magnetic field (provided there are no strong magnets in the immediate vicinity) then the magnet would align in a particular direction which always points toward the north-south direction.