The Reign
Wenzong began his reign determined to be diligent and frugal, having seen the extravagance of his father and brother. He met his officials often, and there were hopes of a better age. He was modest and willing to listen, but he was also indecisive, and he was known to change his mind soon after accepting his chancellors' advice.
His government's first major undertaking was military. At the end of Jingzong's reign, the military governor of Henghai Circuit, Li Quanlüe, had died, and his son Li Tongjie had taken over the circuit without imperial approval in the hope of inheriting it. Wenzong refused to accept this, and after a costly campaign Li Tongjie surrendered in 829.
The Niu–Li Factional Struggle
Wenzong's court was also divided by the long-running rivalry between two groups of officials, known after their leaders as the Niu and Li factions. In the early 830s the chancellors Niu Sengru and Li Zongmin used their positions to push the allies of their rival Li Deyu out of the government.
The First Plot Against the Eunuchs
Resenting the eunuchs' hold over him, Wenzong made secret plans with the official Song Shenxi to curb their power, especially that of Wang Shoucheng, and he made Song a chancellor. Wang and his associate Zheng Zhu learned of the plan and struck back, accusing Song of plotting to replace Wenzong with the emperor's brother Li Cou, Prince of Zhang. In 831 both Song and Li Cou were demoted and sent away.
The Sweet Dew Incident
In 833 Wenzong suffered a stroke. Wang Shoucheng recommended Zheng Zhu, who had a reputation as a physician, and after treating the emperor successfully Zheng became one of his closest confidants, together with the official Li Xun. The emperor never fully recovered his health.
With Zheng and Li Xun, Wenzong now planned a second attempt on the eunuchs. In 835 Wang Shoucheng was removed from power and poisoned. Late that year the conspirators announced that sweet dew, an auspicious omen, had appeared in the grounds of the guard headquarters, intending to lure the leading eunuchs there and kill them. The ambush was discovered. The eunuch commander Qiu Shiliang seized the emperor and turned the palace armies on the officials: Li Xun and Zheng Zhu were killed, the chancellors Wang Ya, Jia Su and Shu Yuanyu were executed although they had known nothing of the plot, and a great many others died.
After the Sweet Dew Incident, Wenzong was little more than a figurehead. Qiu Shiliang and the eunuchs of the palace armies controlled the court for the rest of his reign.
Culture
Wenzong was a cultivated ruler. He issued a decree naming Li Bai's poetry, Pei Min's sword dancing and Zhang Xu's cursive calligraphy the "Three Wonders" of the Tang. In 837 he completed a project to have the Confucian classics carved on stone tablets and set up at the Imperial Academy in Chang'an. Known as the Kaicheng Stone Classics, they survive today in the Forest of Stone Steles in Xi'an.
Relations with Japan
The last official Japanese embassy to reach the Tang court arrived during his reign, in 838, and returned to Japan in 839. The Japanese monk Ennin travelled to China with it and left a celebrated diary of his years in the country.