Molecular machines are among the most complex of all functional molecules and lie at the heart of nearly every biological process. A number of synthetic small-molecule machines have been developed, including molecular muscles, synthesizers, pumps, walkers, transporters and light-driven and electrically driven rotary motors. However, although biological molecular motors are powered by chemical gradients or the hydrolysis of adenosine triphosphate (ATP), so far there are no synthetic small-molecule motors that can operate autonomously using chemical energy (that is, the components move with net directionality as long as a chemical fuel is present). Here we describe a system in which a small molecular ring (macrocycle) is continuously transported directionally around a cyclic molecular track when powered by irreversible reactions of a chemical fuel, 9-fluorenylmethoxycarbonyl chloride. Key to the design is that the rate of reaction of this fuel with reactive sites on the cyclic track is faster when the macrocycle is far from the reactive site than when it is near to it. We find that a bulky pyridine-based catalyst promotes carbonate-forming reactions that ratchet the displacement of the macrocycle away from the reactive sites on the track. Under reaction conditions where both attachment and cleavage of the 9-fluorenylmethoxycarbonyl groups occur through different processes, and the cleavage reaction occurs at a rate independent of macrocycle location, net directional rotation of the molecular motor continues for as long as unreacted fuel remains. We anticipate that autonomous chemically fuelled molecular motors will find application as engines in molecular nanotechnology.