The poles of a magnet are the places where the magnetic forces are strongest. When two magnets are brought close together they exert a force on each other. Two like poles repel each other. Two unlike poles attract each other. Attraction and repulsion between two magnetic poles are examples of non-contact force.