Here's a breakdown:
* Magnets create a magnetic field around them. This field is invisible, but it exerts a force on magnetic materials.
* Magnetic materials, like iron, nickel, and cobalt, have their own tiny magnetic domains that align themselves with the magnetic field. This alignment creates a magnetic dipole which is essentially a tiny magnet with a north and south pole.
* The magnetic force arises from the interaction between the magnetic field of the magnet and the magnetic dipoles in the magnetic material.
* Like poles repel, and opposite poles attract. This means a north pole on a magnet will repel the north pole of a magnetic material and attract its south pole.
Let me know if you have any other questions!