Electromagnetism is the physics of the electromagnetic field, a field that exerts a force on charged particles and is reciprocally affected by the presence and motion of such particles. A changing magnetic field produces an electric field . Similarly, a changing electric field generates a magnetic field. The magnetic field is produced by the motion of electric charges, i.e., electric current. The magnetic field causes the magnetic force associated with magnets.