All magnets have two poles--North and South pole. The north pole of
one magnet when brought close to the south pole of an another magnet or
the south pole of a magnet when brought close to the north pole of an
another magnet, the two magnets attract each other .
Conversely if the north pole is brought close to another north pole or
the south pole is brought close to another south pole, the two magnets
try to repel.