Magnetic compass has magnetic needle in it. It is able to rotate freely inside the compass. It aligns itself to north-south direction. This is because the Earth acts as a magnet. Once the sailors know which direction is north-south, they can navigate their ship accordingly. In this way, the magnetic compass helps the sailors to reach their destination.