Answer:
If two magnetic south poles or two magnetic north poles are brought near each other, the magnetic force is repulsive and the magnets will push against each other in opposite directions. If opposite poles are brought near, it is attractive. But the fundamental origin of the magnetic field is moving charge.