An electric motor is an engine that is a machine for converting electrical energy into mechanical energy.