사안
Zhang Jun continued to serve as chancellor after Emperor Xizong died in 888 and was succeeded by his brother Emperor Zhaozong, who was supported by Yang Fugong. However, after Emperor Zhaozong became emperor, both Zhang and fellow chancellor Kong Wei advocated a suppression of eunuch power. Emperor Zhaozong agreed, and, as he knew that Yang resented Zhang, trusted Zhang further with his plans of suppressing Yang's power. Zhang often compared himself to the great Jin Dynasty (266–420) Xie An and the great Tang chancellor Pei Du. Further, under Zhang's advocacy that the imperial government needed an army of its own, Emperor Zhaozong created an imperial army drawn from the people from Chang'an region, of some 100,000 strong.