In 725 CE the monk and astronomer Yi Xing and the engineer Liang Lingzan built a water-driven armillary sphere for the Tang court. A mechanism released its wheel in regular steps so that it followed the sky.
Later Chinese engineers, notably Su Song in 1088, built larger astronomical clock towers. Weight-driven mechanical clocks appeared in Europe in the late 13th century.