At 1,800km (1,116 miles), the Grand Canal is the longest canal in the world. Together with the Great Wall of China, this waterway, which runs from Beijing to Hangzhou, is one of China's great engineering feats. The first 85km (52 miles) were constructed as early as 495 B.C., but the Herculean task of linking the Yellow River and Yangtze River began in earnest in the early 7th century, when the second Sui dynasty Yang Di emperor had the waterway dug from his capital at Luoyang to Beijing in the north and to the Yangtzei River basin. Due to the differences in terrain and water levels, locks and dams had to be built along the way.
The original purpose of the canal was to transport the plentiful grains of the affluent south to the poorer north, but over the course of the years, the canal became a major trade conduit as commodities such as tea, silk, porcelain, lacquerware, and salt were all shipped up north. By the time of the Yuan dynasty (1206-1368), the final stretch of the canal was completed, linking Beijing all the way to Hangzhou. Many of the bricks and stones used to build Beijing's temples and palaces arrived via the canal. By the time of the Southern Song dynasty (1127-1279), political power had shifted south to Jiangsu and Zhejiang provinces, as the Song emperors moved their capital to Hangzhou and the Ming emperors established themselves in Nánjing.
The canal only fell into disuse in the early 20th century, thanks to constant flooding from the Yellow River, silting, and the development of rail lines. Today, the navigable sections are primarily south of the Yangtze River in the region known as Jiangnan, which includes the cities of Wuxi, Yangzhou, Suzhou, and Hangzhou.