As a "harsh official" during the Tianbao years, Ji Wen was entrusted at various times with high responsibilities by Li Linfu, Yang Guozhong and An Lushan and he gradually got rid of his harsh image and took on the role of a court official with an important political role. In the last years of Tianbao, Ji Wen was caught in the conflicts between Yang Guozhong and An Lushan. Yang demoted him on a flimsy pretext and later he died in prison. Two months later, the An Lushan Rebellion that almost destroyed the entire Tang dynasty broke out. It was rumored at the time that An Lu-shan raised his army to avenge Ji Wen. The political role that Ji Wen played in the late Xuan Zong rule therefore cannot be ignored.