Emperor Wuzong of Tang (July 2, 814 – April 22, 846), né Li Chan, later changed to Li Yan just before his death, was an emperor of the Tang Dynasty of China, reigning from 840 to 846. Emperor Wuzong is mainly known in modern times for the religious persecution that occurred during his reign. However, he was also known for his successful reactions against incursions by remnants of the Uyghur Khanate and the rebellion by Liu Zhen, as well as his deep trust and support for chancellor Li Deyu. Background Li Chan was born in 814, as the ninth son of Li Heng at least, who was then Crown Prince under Li Chan's grandfather Emperor Xianzong. He was born at the Eastern Palace (i.e., the Crown Prince's palace). His mother was Consort Wei, whose rank was lost to history. After Li Heng became Emperor Muzong in 820, he made many of his brothers and sons princes in 821, and Li Chan was made the Prince of Ying. Little is known about Li Chan's activities during the reigns of Emperor Muzong or Li Chan's older brothers Emperor Jingzong (Emperor Muzong's oldest son) and Emperor Wenzong (Emperor Muzong's second son), other than that during the middle of Emperor Wenzong's Kaicheng era (836–840), Emperor Wenzong bestowed the honorary title of Kaifu Yitong Sansi () on him, as well as the title of honorary minister of civil service affairs (吏部尚書, Libu Shangshu). It was said that Li Chan was silent, intelligent, and decisive, not showing his emotions easily. It was also said that Emperor Wenzong treated him and another brother, Li Rong the Prince of An, better than other princes. Emperor Wenzong originally created his son Li Yong crown prince, but after Li Yong died in 838, he was unsure whom to make his successor. Emperor Wenzong's favorite concubine Consort Yang recommended Li Rong, but when Emperor Wenzong consulted the chancellors, Li Jue opposed this proposal. Emperor Wenzong thus, in 839, created Emperor Jingzong's youngest son Li Chengmei the Prince of Chen crown prince. When Emperor Wenzong became seriously ill early in 840, he had his trusted eunuchs Liu Hongyi () and Xue Jileng () summon the chancellors Yang Sifu and Li Jue to the palace, intending to entrust Li Chengmei to them. However, the powerful eunuchs Qiu Shiliang and Yu Hongzhi (), who were not consulted in the decision, opposed Li Chengmei, and