In 214, after the warlord Liu Bei seized control of Yi Province from the provincial governor Liu Zhang, Deng Zhi was appointed as a low-level officer in charge of the granary in Pi County. One day, when Liu Bei visited Pi County, he spoke to Deng Zhi and discovered his talent. He was so impressed with Deng Zhi that he appointed Deng Zhi as the Prefect of Pi County, and later promoted him to the position of Administrator of Guanghan Commandery (廣漢郡; around present-day Guanghan, Sichuan).