When Zhang Fei is sent by Zhuge Liang to absorb the city of Wuling from Jin Xuan, Gong Zhi advocates giving in to the invaders on the account that Liu Bei was a recognized imperial uncle, and Zhang Fei was an invincible warrior. His words are taken as traitorous by Jin Xuan and he is put to death, but other officers successfully pleaded for Gong Zhi's life. Jin Xuan marches out with his army and is defeated by Zhang Fei, then retreating back to Wuling. Jin Xuan was killed by an arrow to the head after finding out that Gong Zhi and closed the gates. Thereafter Gong Zhi was made the governor of Wuling.