What makes the lower Yellow River hard, Sima Qian says plainly in the "Treatise on Rivers and Canals" (Hequ shu) of the Records of the Grand Historian (Shiji): "When the river overflowed in floods, it harmed the Central States most of all." In the reign of Emperor Wu the river broke out at Huzi, "flowing south-east into Juye and linking with the Huai and the Si"; for more than twenty years afterwards, "the harvests failed again and again, and the lands of Liang and Chu most of all". The emperor went to the breach himself and had his ministers and attendants, "from the generals downward, all carry brushwood to plug the breach"; once it was closed, the book gives the result as "restoring Yu's old course, and the lands of Liang and Chu were at peace again, free of flood". The page says only "in the Yuanguang period" and gives no year.
Before that, each state had built dykes of its own. An article by Niu Zhiqi (first printed in Studies in the History of Water Conservancy, Shuili shi yanjiu), posted on The Paper (Pengpai) in its government channel by the Publicity and Education Centre of the Ministry of Water Resources, dates the Kuiqiu meeting to 651 BCE and says the Spring and Autumn states "made a neighbour's land the drain and used water as a weapon". The pact's fifth clause is given in Mencius, "Gaozi, Part 2" as "no crooked dykes, no hoarding of grain", and in the Guliang Commentary (Guliang zhuan), Duke Xi year 9, as "do not dam the springs, do not stop the grain trade"; the wording differs. The article reads "no crooked dykes" as a limit on dyke-building; that is its author's reading, and Mencius does not explain the words.
The Eastern Han approach is preserved in the Book of the Later Han (Hou Han shu). The biography of Wang Jing says that in the twelfth Yongping year it was proposed to repair the Bian canal, and Emperor Ming summoned Wang Jing and "asked him about the lie of the waters and the best course"; that summer he "sent out several hundred thousand conscripts and ordered Wang Jing and Wang Wu to repair the canal and build dykes, from Xingyang east to the sea mouth at Qiancheng, over a thousand li". The method was "a water gate every ten li, so that they feed one another in turn"; "the next summer the canal was finished", and the emperor "ordered the commanderies and kingdoms along the river to appoint river-dyke officials, as in the old Western Han practice". The Annals of Emperor Ming record the same work under the fourth month, summer, of the twelfth Yongping year ("sent the Master of Works Wang Wu to repair the Bian canal") and the fourth month, summer, of the thirteenth ("the Bian canal was completed"), that is 69 to 70 CE (the fourth month is a lunar month); the Annals name only Wang Wu, while the biography names Wang Jing and Wang Wu together. Wang Wenzhong writes in People's Weekly (Renmin zhoukan) that for more than eight hundred years after Wang Jing's work, to the end of the Tang, the river "stayed in a relatively calm state"; this is his statement.
The Ming way took another road. In summer of the sixth Wanli year (1578), Pan Jixun was appointed to take over, and the History of the Ming (Ming shi) biography of Pan Jixun records his proposals: "build up Cuizhen to close the breach, and build distant dykes against bursts", and his remark that "a dou of Yellow River water carries six parts of silt, and in the high-water seasons eight", so that one must "use the clear Huai to scour the muddy river". His own words are in his Survey of River Defence (Hefang yilan), volume 2: "when the water is divided its force slackens, when the force slackens the silt settles, and when the silt settles the river is choked", and "build dykes to confine the water, and let the water scour the silt". The Treatise on Rivers and Canals in the Ming shi records the works as finished in the tenth lunar month of the seventh Wanli year (1579): the Gaojiayan dyke of over sixty li, distant dykes on both banks of over 56,000 zhang, narrow dykes at Xu, Pei, Feng and Dang of over 140 li, at "a cost of over 560,000 taels of state silver"; the treatise calls this "the method of using water to manage water".
This approach was not without dispute. The Ming shi describes the position after the breach at Cuizhen: "the Yellow River flowed north, the mouth at Qinghe silted up, the whole Huai shifted south, the lake dyke at Gaoyan was badly damaged, and the country between Huai'an, Yangzhou, Gaoyou and Baoying became one great flood", and "the Grand Secretary Zhang Juzheng was deeply troubled"; Wu Guifang proposed to "restore the old course of the Yellow River", while Fu Xizhi "wanted to close the breach and confine the water to the canal", and "the two could not agree". Asked whether, once the river was dyked, it could be sure never to break again, Pan Jixun answered in the Survey of River Defence first "what harm if it does break?" and then "now there are distant dykes to check its fury and relief weirs to blunt its anger". Wang Wenzhong's article summarises his dykes as distant, narrow, cross and moon dykes, each with its own task; this is that article's summary.
River control also became an office and an institution. The Ming shi says Pan Jixun "received four commissions to control the river, over twenty-seven years in all"; when the censor Li Dong spoke in his defence he wrote: "In the Longqing years the river broke at Cuizhen and blocked the transport route", and afterwards "people settled again and the river ran quietly". The way of appointing officers changed several times: "from the time of Wu Guifang and Pan Jixun the post of director-general of the river was dropped, and afterwards the grain-transport commissioner looked after the river as well"; when Pan was called back, "since Wu Guifang the river and the canal had both been managed by one man, and now a dedicated official was set up again".
The work also entered writing. Sima Qian says: "I carried brushwood myself to close the Xuanfang breach, and, saddened by the song of Huzi, wrote the Treatise on Rivers and Canals", and he put down the words "how great are the benefit and the harm of water". The Treatise opens by going back to Yu the Great, who "held back the flood for thirteen years and passed his own door without entering"; in speaking of waterworks beyond the Yellow River it also has "the Governor of Shu, Bing, cut through Lidui, removed the harm of the Mo River, and opened two rivers through Chengdu", and at the end it says that after Xuanfang "those in charge vied to speak of water works".
The river's harnessing overlaps with three other canons. The Treatise on Rivers and Canals is one chapter of the Records of the Grand Historian, the work that the canon Records of the Grand Historian is about, so harnessing the river is thereby written into the histories; what Pan Jixun managed was the stretch where the Yellow River, the Huai and the transport route join, and the "transport route" in Li Dong's memorial means a grain-carrying waterway, the kind of waterway that Grand Canal is about; and the Treatise records Xuanfang and the "Governor of Shu, Bing" in one chapter, so that Dujiangyan Water Project is the other end of the same chapter: at one end water is drawn off for profit, at the other it is confined against harm, and Sima Qian sums both up in one phrase, "the benefit and harm of water".
The one who carried brushwood was Sima Qian, and he came back and wrote the Treatise on Rivers and Canals; the one who ordered river-dyke officials along the river was Emperor Ming of the Eastern Han; the one who worked "a dou of water, six parts silt" into the dykes was Pan Jixun of the Ming. The Yellow River was never mastered at one stroke; each generation went on writing, reckoning and mending, one account after another, and it is canon because of those accounts handed down, which also let later people know where to take over.
Yellow River Harnessing is the class in the chapter on Infrastructure on the management of the Yellow River. It covers the levees, diversions and "confine the water to scour the silt" with which the river has been managed from the Spring and Autumn period to today: dykes hold the water in, channels draw off its force, and the current is then used to wash out the silt on the bed. It is about the methods of river control, not the river itself.