process and he had the names of ten respectable men in town, including Liu Bang, written on separate pieces of paper and shuffled. Xiao He then asked Liu Bang to pick any piece from the pile, without seeing the name on it, and Liu picked his own name by chance. Liu Bang looked at Xiao He and wanted to decline again. Xiao He immediately grabbed the remaining pieces of paper, put them into his mouth and chewed them to shreds, after which he proclaimed Liu Bang as their leader. Liu Bang became known as the "Duke of Pei" and built his rebel army in Pei County, with Xiao He and his friends supporting him. Liu Bang learnt from Xiao He later that actually all the ten pieces of paper contained his name, and Xiao had deliberately tampered with the system to help him. In 206 BC, the Qin dynasty collapsed after the last Qin ruler, Ziying, surrendered to Liu Bang. Liu Bang's army occupied the Qin capital Xianyang. Upon entering the Epang Palace, Liu Bang and most of his men seized treasures and women for themselves, while Xiao He rushed to the chancellor's office and ordered it to be heavily guarded. Xiao He then brought a few men with him to collect all official documents in the office and bring them out safely. Xiao He later explained that the documents were more valuable than riches and women, because they contained crucial information about the Qin Empire and would be useful in intelligence. Chu–Han Contention Recommending Han Xin Liu Bang was forced to retreat from Xianyang later as Xiang Yu's army arrived and occupied the city. After plundering Xianyang and destroying the palace, Xiang Yu divided the former Qin Empire into the Eighteen Kingdoms. Liu Bang received the title of "King of Han" and was relocated to the remote Bashu region (in present-day Sichuan), with Xiao He and his followers accompanying him. Liu Bang was unhappy and wanted to attack Xiang Yu because the land of Guanzhong rightfully belonged to him, according to an earlier promise by Emperor Yi of Chu, but was granted by Xiang to three surrendered Qin generals instead. However, Xiao He and others managed to persuade Liu Bang to temporarily remain in Bashu and build up his forces in preparation for a battle for supremacy with Xiang Yu later. Xiao He was appointed by Liu Bang as