Electric fields are described by Coulomb's Law, and they are fairly straightforward; like charges repel and opposite charges attract. Magnetism is more complicated, although it looks very similar,...
Magnetic fields are produced by electric currents, which can be macroscopic currents in wires, or microscopic currents associated with electrons in atomic orbits