Step-by-step explanation:
Well, let’s at first go with the “conventional” explanation (which is really pretty good): Similar poles repel each other because of magnetic lines of force. A magnetic line of force originates from the north pole of a magnet and ends at its south pole. When the north and south pole ends of a magnetic object are put into close proximity, they form an attraction because the magnetic lines continue together in the same direction. Like poles repel because the lines of force are head-to-head (Yeah, pretty much that’s it).