Every magnet has a north pole and a south pole. Like poles repel each other, while opposite poles attract.