Magnets have two poles, a north pole and a south pole. Opposite poles attract each other, while like poles repel each other.