Before the Ganlu Incident As of 835, Emperor Wenzong was conspiring with the officials
Zheng Zhu and
Li Xun to slaughter the powerful eunuchs. They first wanted to target Wang Shoucheng, and as they knew that Wang and Qiu Shiliang were enemies, in summer 835 Emperor Wenzong made Qiu the commander of the Left Shence Army so that he would divert Wang's authority. Subsequently, after Wang retired, Emperor Wenzong had the eunuch Li Haogu () send poisoned wine to Wang, and Wang died shortly thereafter. six days before the scheduled funeral for Wang, Han reported to Emperor Wenzong, at the imperial meeting hall Zichen Hall (), that there had been sweet dew (甘露,
ganlu in Chinese) that appeared on a pomegranate tree outside the headquarters of Zuo Jinwu (), one of the Wei Army () headquarters—viewed as a sign of divine favor. Emperor Wenzong then went to nearby
Hanyuan Hall () and ordered the imperial officials, including Li Xun, to examine the purported sweet dew. Li Xun soon returned and stated that it appeared that there was no sweet dew; at Li Xun's suggestion, Emperor Wenzong ordered Qiu and his fellow Shence Army commander Yu Hongzhi () to lead the eunuchs in examining the sweet dew. When Qiu and Yu arrived at the Zuo Jinwu headquarters, however, Han had lost his composure, and Qiu realized that something was wrong when he saw soldiers converging and the noise of weapons clanging. He and the other eunuchs immediately ran back to Hanyuan Hall and seized Emperor Wenzong. The soldiers under Luo and Li Xiaoben battled the eunuchs, killing a number of them, but the eunuchs were able to escort Emperor Wenzong back to the imperial palace. Knowing that he had lost this gambit, Li Xun fled. Meanwhile, as Emperor Wenzong's son and
crown prince Li Yong died in 838, a question arose as to who would succeed Emperor Wenzong. Emperor Wenzong's favorite
concubine Consort Yang supported Emperor Wenzong's younger brother
Li Rong the Prince of An, but after opposition by the chancellor
Li Jue, Emperor Wenzong created Emperor Jingzong's son
Li Chengmei the Prince of Chen crown prince. When Emperor Wenzong became deathly ill in spring 840, he had his trusted eunuchs Liu Hongyi () and Xue Jileng () summon the chancellors Li Jue and
Yang Sifu to the palace, preparing to entrust Li Chengmei to them. Qiu and Yu, however, opposed Li Chengmei, as Emperor Wenzong did not consult them before making Li Chengmei crown prince. They discussed with Li Jue and Yang the possibility of changing the crown prince and, despite Li Jue's opposition, issued an edict in Emperor Wenzong's name deposing Li Chengmei and creating Emperor Wenzong's younger brother
Li Chan the Prince of Ying crown prince instead. Soon thereafter, Emperor Wenzong died. At Qiu's urging, Li Chan, even before he would officially take the throne, ordered Consort Yang, Li Rong, and Li Chengmei to commit suicide. It was said that this point, Qiu and the other powerful eunuchs resented Emperor Wenzong so much that any eunuchs and musicians whom Emperor Wenzong favored were being executed and exiled en masse. Soon, Li Chan formally took the throne (as Emperor Wuzong). == During Emperor Wuzong's reign ==