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 ofCombined ScienceMagnetism and magnetic forces