Liu Bang, courtesy name Ji, of Zhongyangli in Fengyi of Pei, was founding emperor of the Western Han. Under the late Qin he headed Sishui township, and releasing the convicts he was escorting past their term, went into hiding. When the Daze Xiang rising broke out he answered it with the revolt at Pei — the Duke of Pei — joining the Xiang uncle and nephew. First into Guanzhong in 206 BC, he received the surrender of Ziying of Qin, capped his entry into Xianyang with the three-article compact sworn with the elders, and withdrew to Bashang. Xiang Yu then partitioned the states and made him king of Han in Ba-Shu and Hanzhong; the covert crossing at Chencang returned the Three Qins to him, and four years of Chu-Han war followed. In 202 BC the Han armies closed the ring at Gaixia; Xiang Yu cut his own throat, and Liu Bang took the throne, founding Han with its capital at Chang'an. As emperor he kept Qin's frame with amendments, settling merit-ministers and kin in a mixed fief-commandery order, then cutting down the alien-surnamed kings — Han Xin, Peng Yue, Ying Bu — one by one; toward the Xiongnu he turned to marriage alliance, and gave the people rest with light levies, moving the old houses of the six states to fill Guanzhong. He died in 195 BC on the road back from the campaign against Ying Bu. From commoner to Son of Heaven, he opened the Han age of 'generals and ministers in commoner cloth', and with it the house's four-hundred-year foundation.