While lecturing his class at the University of Copenhagen in 1819, he accidentally came upon this connection. Some people say that this discovery was more of an accident, than one based upon research and knowledge, which may have some truth. In the 1780's Colomb hypothesized that electricity and magnetism were two very different laws, he felt this was impossible. Oersted also studied Naturphilosophie under Schelling, which stemmed his belief in the view that nature is systematic and unified. Because he looked at the study and practice of science as religion, he was motivated to find a connection that would link different scientific fields. Although the actual discovery was an accident, Oersted was on the right track. He had all the right materials and the right general idea.
One afternoon Hans Christian Oersted was attempting to demonstrate to his students that moving charges did not make a magnetic field. Oersted had planned to demonstrate this by showing the heating of a wire by an electric current. He also wanted to demonstrate magnetism. In order to do this, he provided a compass needle mounted on a wooden stand. Oersted noticed that every time the