Hans Christian Oersted, a Danish Physicist, and chemist observed deflection in needles placed near the current-carrying wire and with various experiments discovered the magnetic effect of current.
At a time when scientists believed that there is no relation between electricity and magnetism, Oersted observed a minute deflection in compass near a current-carrying wire.
He called this result of electric current producing magnetic field as electric conflict.
The experiment was proved for different types of conductors and various orientations of the needle.
On a later study French physicist André Ampere described magnetic forces between current-carrying wires using mathematics laws.