临洮县
In 255, when Jiang Wei, a general from Wei's rival state Shu Han, led the Shu forces to Wei's Longxi Commandery (隴西郡; roughly present-day southern and southeastern Gansu), Wang Jing led a Wei army from Didao (狄道; present-day Lintao County, Gansu) to engage the enemy but was defeated. Wang Jing ended up being besieged by Shu forces in Didao. The siege was lifted when the Wei generals Chen Tai and Deng Ai showed up with reinforcements and drove the enemy back. Wang Jing was recalled back from Yong Province to the Wei imperial court in Luoyang and reassigned to be the Colonel-Director of Retainers () and a Master of Writing ().