China's canal system, whose greatest accomplishment was the Sui Dynasty's 1794 kilometers 7th-century Grand Canal between Hangzhou and Beijing, was an essential aspect of its civilization, used for irrigation, flood control, taxation, commercial and military transport, and colonization of new lands from the Zhou Dynasty until the end of the imperial era.