An electric motor is a device that converts electrical energy into mechanical energy, typically rotational motion. It works by utilizing the interaction between magnetic fields and electric currents to produce force, which is then used to rotate a shaft.