Answer: When there is another magnet close by.
Explanation: The needle of a compass is itself a magnet, and thus the north pole of the magnet always points north, except when it is near a strong magnet. ... When you take the compass away from the bar magnet, it again points north. So, we can conclude that the north end of a compass is attracted to the south end of a magnet.