Clockwork refers to the inner workings of either mechanical machines called clocks and watches or other mechanisms that work similarly, using a series of gears driven by a spring or weight.