According to Greek legend, magnetism was first discovered by a shepherd named Megnes in Megnesia, Greece. His iron stick and nails had become attracted to a magnetic rock, which was named magnetite after the shepherd or country. Magnets have two poles, a north pole and a south pole, which always exist in pairs and cannot be separated. A compass uses a magnetic needle that aligns in the north-south direction, with its red end pointing north.