In 1821, Faraday made a device. This device could transform the electric energy into mechanical energy. It is regarded as the first motor in the world. The principle is make the magnet's magnetic field is interacted with the line's magnetic field. It could produce a force which could make the wire rotated around the axis. The talented idea is Faraday using hydrargyrum. This solved the invert problem in the motor's continuous rotation. This verify the energy transform could be continuous. It lay a solid foundation for the motor's development.

As we know, the magnet could devided into N pole and S pole. The magnetic line of force start from N pole and back to S pole. Similar poles of magnets repel each other, and opposite poles attract. The diagram as follows.

In theory, we could remove a magnetic pole moving along with another magnetic pole according the interation force between the two magnetic poles. But we could not call it motor. Because rotating a magnetic pole need the machanical energy. It is the machanical transformation in essence. It is not the electric energy and the mechanical energy transformation.
Ampere's Law tells us, the magnetic field is produced by the electric current in essence. If we want to make the magnetic field ineracts, we need to have the electric current. So could we use a wire to replace one of the magnetic fields ? The permanent magnet motor according this principle work.

