Magnetism is the force of attraction or repulsion that acts at a distance. This is due to the magnetic field, which is caused by the movement of electrically charged particles.
Faraday further connected electricity and magnetism - a changing magnetic field creates an electric field. Maxwell - a changing electric field produces a magnetic field.