In the old days, sailors used a compass, which is a magnetized needle that aligns with the Earth's magnetic field to show direction. This allowed sailors to navigate based on the needle pointing north, helping them determine their heading and find their way across the seas.