Electromagnetism is caused by the magnetic fields around wires carrying an electric current. The induced magnetic field of a wire can interact with other nearby magnets, producing a force.
Part of Physics (Single Science)Magnetism and magnetic forces