Every magnet has two poles: a north pole and a south pole. These poles are essential to the behavior of magnets and their magnetic fields.
When you bring two magnets close together, the opposite poles attract each other—this means that the north pole of one magnet will pull towards the south pole of another. Conversely, like poles will repel each other; the north poles push away from each other, as do the south poles.
This dual-pole nature is a fundamental property of all magnets, regardless of their size or shape. Even if you cut a magnet in half, each half will still have both a north and a south pole. This phenomenon is due to the alignment of magnetic domains within the material, which are regions where the magnetic fields of atoms are aligned in the same direction.