Magnetism is the force exerted by magnets or moving electric charges, resulting from the motion of electrons within atoms.