The Eastern Wu era was a formative period in Vietnamese history. A Jiaozhou (modern Vietnam and Guangzhou) prefect, Shi Xie, ruled Vietnam as an autonomous warlord for forty years and was posthumously deified by later Vietnamese emperors. Shi Xie pledged loyalty to Eastern Wu. Originally satisfied with Eastern Wu's rule, the Vietnamese opposed Shi Hui's rebellion against Eastern Wu and attacked him for it. However, when the Wu general Lü Dai betrayed Shi Hui and executed the entire Shi family, the Vietnamese became greatly upset. In 248, the people of Jiaozhi and Jiuzhen commanderies rebelled. Eastern Wu sent Lu Yin to deal with the rebels. He managed to pacify the rebels with a combination of threats and persuasion. However the rebels regrouped under the leadership of Lady Triệu in Jiuzhen and renewed the rebellion with a march on Jiaozhi. After several months of warfare she was defeated and committed suicide.