Electric motors use the interaction between magnetic fields and electric currents to produce rotational force (torque), which can then be used to perform mechanical work.