AC and DC motors differ in the type of electrical current they use to produce rotational or linear motion. AC motors use alternating current, which periodically changes direction, whereas DC motors use direct current, which flows in one direction. AC motors are simpler and more efficient, but DC motors offer greater control and responsiveness. The choice between AC and DC motors depends on the specific application and its requirements for power, speed and control.