Chiral N-alkyl imines undergo unidirectional rotation induced by light and heat, thus providing a new class of molecular motors. Depending on the conformational flexibility of the stator part (the carbonyl residue) and the nitrogen inversion barrier of the rotor part (the amine residue) in the molecule, the operation mode of the motor can be controlled as either a four- or a two-step cycling motion of the rotor part.