Attempts to fabricate mechanical devices on the molecular level have yielded analogues of rotors, gears, switches, shuttles, turnstiles and ratchets. Molecular motors, however, have not yet been made, even though they are common in biological systems. Rotary motion as such has been induced in interlocked systems and directly visualized for single molecules, but the controlled conversion of energy into unidirectional rotary motion has remained difficult to achieve. Here we report repetitive, monodirectional rotation around a central carbon-carbon double bond in a chiral, helical alkene, with each 360° rotation involving four discrete isomerization steps activated by ultraviolet light or a change in the temperature of the system. We find that axial chirality and the presence of two chiral centres are essential for the observed monodirectional behaviour of the molecular motor. Two light-induced cis-trans isomerizations are each associated with a 180° rotation around the carbon-carbon double bond and are each followed by thermally controlled helicity inversions, which effectively block reverse rotation and thus ensure that the four individual steps add up to one full rotation in one direction only. As the energy barriers of the helicity inversion steps can be adjusted by structural modifications, chiral alkenes based on our system may find use as basic components for `molecular machinery' driven by light.