When he attacked the Tang eastern capital Luoyang with Shi Chaoyi, he left her at his base Fanyang (范陽, modern Beijing), with Shi Chaoqing in charge.
In 755, the general An Lushan rebelled at Fanyang, and by summer 756, the forces of his new state of Yan were approaching the Tang capital Chang'an, forcing Emperor Xuanzong to flee to Chengdu.