Poles and field lines
A magnet has a north pole and a south pole. Like poles repel and unlike poles attract because each magnet produces a magnetic field around it.