During the Tianbao period of the Tang Dynasty, during the An Shi Rebellion, the emperor Li Longji and his consort Yang Yuhuan were forced to flee with only veteran generals Guo Ziyi and Cao Guojie.