Until 1831 electricity and magnetism had been viewed as unrelated phenomena .
Recall that until 1820 ( when the Danish physicist H.C. Ørsted discovered the effect of electricity through a wire on a compass needle ) , electricity and magnetism had been viewed as unrelated phenomena .
Electromagnetic field