In the spring of 1895, while the treaty awaited ratification, the scholar Kang Youwei led more than a thousand candidates for the metropolitan examinations in a petition to the throne, urging the emperor to reject the peace and to reform the state. Kang and his student Liang Qichao became the leading voices of reform, and the emperor read their writings closely.
On 11 June 1898 Guangxu issued an edict announcing a programme of reform. Over the following hundred days or so he issued a stream of decrees. Among other things they:
- replaced the rigid "eight-legged essay" in the civil service examinations with questions on practical and current affairs;
- founded the Imperial University of Peking and ordered the conversion of old academies into modern schools;
- called for the modernisation of the army and the promotion of industry, commerce, railways and mining;
- abolished redundant government offices and sinecures;
- allowed ordinary officials and citizens to address memorials directly to the throne.
The reforms were drafted in haste and threatened many officials, who stood to lose their posts, their privileges or the value of their classical learning. Much of the bureaucracy ignored them, and conservatives looked to Cixi for protection.
The Coup and the Emperor's Confinement
As tension grew, the reformers sought military support from the general Yuan Shikai. Yuan is generally believed to have revealed their plans to Ronglu, Cixi's trusted ally. On 21 September 1898 Cixi returned to power. Most of the reforms were cancelled, although the Imperial University survived. Six reformers, among them Tan Sitong, were executed, while Kang Youwei and Liang Qichao escaped to Japan.
The emperor kept his title and continued to appear at audiences and to perform the great state sacrifices, but he never ruled again. He was confined to the Yingtai, a small island pavilion in the palace lake of Zhongnanhai.
His health was poor, and he had no children. In 1900 Cixi named Pujun, the son of Prince Duan, as heir to the late Tongzhi Emperor. Prince Duan was a leading supporter of the Boxers, and after the Boxer Rebellion and the occupation of Beijing by foreign troops in 1900 he was exiled and Pujun lost his position. During the flight from the capital in 1900, the emperor's favourite, Consort Zhen, died in a palace well, reportedly on Cixi's orders.