In 744, with further praises from the powerful chancellor Li Linfu and Pei Kuan, An was, in addition to Pinglu, made the military governor of Fanyang Circuit (范陽, headquartered in modern Beijing). Wanting to show his military abilities, he often pillaged the Khitan and the Xi. His actions led to two princesses of the royal clan, who were married to Khitan and Xi leaders as part of the heqin policy, being executed in retaliation, and both groups rebelled in 745, though An defeated them.