898, restoring the titles that he had previously stripped from Li Maozhen. With Zhu Quanzhong urging the emperor to move the capital to the eastern capital Luoyang, Han and Li Maozhen became apprehensive that he would launch an army to seize the emperor, and therefore repaired the palaces and governmental offices at Chang'an (which Li Maozhen's army had destroyed). In fall 898, Emperor Zhaozong returned to Chang'an, but with no army around him now other than the eunuch-controlled Shence Armies. Removal and restoration Meanwhile, also rising in power at court was the chancellor Cui Yin, who hated the eunuchs ardently and who was allied with Zhu Quanzhong. By 900, Emperor Zhaozong, who had come to trust Cui and who would later describe him as "faithful but trickier" (than Han Wo, the official the emperor was making the comment to) was planning with Cui to slaughter the eunuchs. When Cui's fellow chancellor Wang Tuan urged against such action, believing the plans to be too drastic, Cui accused Wang of being in league with the powerful eunuchs Zhu Daobi () and Jing Wuxiu (), who served as the directors of palace communications (Shumishi). Upon Cui's accusations, Emperor Zhaozong ordered Wang, Zhu Daobi, and Jing to commit suicide, and it was said that from this point Cui became the leading figure at court, with the eunuchs angry at and fearful of him. The eunuchs also had become fearful of Emperor Zhaozong himself, who, after returning from Hua Prefecture, was described to be depressed, alcoholic, and unpredictable in his temperament. The four top-ranked eunuchs—Liu Jishu and Wang Zhongxian () the commanders of the Shence Armies, and Wang Yanfan () and Xue Qiwo () the new directors of palace communications—began plotting to remove him. After an incident in winter 900 in which Emperor Zhaozong, in a drunken rage, killed several attending eunuchs and ladies in waiting, Liu Jishu led Shence Army troops into the palace and forced Emperor Zhaozong to yield the throne to his son Li Yu, Prince of De the Crown Prince. Emperor Zhaozong and his wife (Li Yu's mother) Empress He were honored as retired emperor (Taishang Huang) and retired empress (Taishang Huanghou) but put under house arrest. Li Yu, whose name the eunuchs changed to Li Zhen, was proclaimed emperor, but the eunuchs controlled the court. They wanted to kill Cui, but was fearful that Cui's ally Zhu Quanzhong might react