The Chu-Han Contention was the war of 206-202 BC between the Hegemon-King of Western Chu, Xiang Yu, and the King of Han, Liu Bang — the struggle that, following Qin's destruction of the six states and the Qin's fall, reunified China. In 206 BC Xiang Yu apportioned the realm among eighteen kings, Liu Bang being packed off as King of Han; that eighth month Liu Bang stole through Chencang into the three Qin, and the two fought without pause thereafter. Early on Xiang Yu won repeatedly — at Pengcheng 30,000 cavalry shattered a Han host of 560,000 — while Liu Bang dug in at Xingyang and Chenggao, sustained by Xiao He's grain trains from Guanzhong, as Han Xin broke Wei, Zhao, Yan and Qi in the north, Peng Yue harried Chu's rear, and Ying Bu defected: a strategic net closed around Xiang Yu. In 203 BC the Hong Canal truce split the realm in two and Xiang Yu marched east; on the counsel of Zhang Liang and Chen Ping Liu Bang turned and pursued, and in 202 BC joined Han Xin and Peng Yue to pen him at the Battle of Gaixia — songs of Chu on four sides, the farewell of the hegemon and his lady, and death by his own sword at the Wu River. Liu Bang took the imperial title that same year, naming the state Han. Four years of war left the empire exhausted, yet Han kept Qin's institutions while softening their harshness — commanderies and kingdoms side by side, the people left to breathe — and the four-hundred-year foundation of the Han was laid.