Electromagnetism deals with the relationship between electric and magnetic fields. When a charged particle moves, it creates a magnetic field, and when a magnetic field changes, it creates an electric field.