Once, Liu Bang released some prisoners he was escorting to Mount Li to be labourers, and became a fugitive. He hid in an outlaw stronghold on Mount Mangdang (in present-day Yongcheng, Henan) and maintained secret contact with Xiao He and Cao Shen. In 209 BC, Chen Sheng and Wu Guang started the Dazexiang Uprising to overthrow the Qin dynasty, and was followed by numerous other rebellions throughout China. The magistrate of Pei County considered rebelling as well, so he heeded Xiao He and Cao Shen's advice to invite Liu Bang back to support him. However, he changed his mind later and denied Liu Bang's party entry into the city. As he was afraid that Xiao He and Cao Shen might open the gates for Liu Bang, he intended to have them executed, but Xiao and Cao escaped and joined Liu. As suggested by Xiao He, Liu Bang had letters sent to the townsfolk, fired into the city on arrows, urging them to join him. The people responded to Liu Bang's call and killed the magistrate and welcomed him back into the city.