Any rotating electrical equipment or machinery capable of converting direct current (DC) electrical into mechanical energy is called a DC motor.
Miniature DC motors comprising toys as well as appliances to massive devices that power automobiles, pull elevators, hoists, as well as drive steel rolling mills range in reach and strength.
Therefore, it is an electrical machine that converts electrical energy into mechanical energy.