 Magnetic fields arise due to the motion of charges, and also due to the alignment of the domains of magnetic materials where the magnetic moments of the atoms point in the same direction.The modern (post-Einstein) interpretation is that the magnetic field is equivalent to the electric field, but in a different reference frame.Since magnetic fields can be interpreted as electric fields in a different reference frame (and vice versa), special relativity connects the two fields.