stylistic:style_transfer
Boxer Rebellion

In 1900, the Boxer Rebellion broke out in northern China. Perhaps fearing further foreign intervention, Cixi threw her support to these anti-foreign bands by making an official announcement of her support for the movement and a formal declaration of war on the Western powers. The general Ronglu deliberately sabotaged the performance of the imperial army during the rebellion. Dong Fuxiang 's Muslim troops (the " Kansu Braves ") were able and eager to destroy the foreign military forces in the legations, but Ronglu stopped them from doing so. The Manchu prince Zaiyi was xenophobic and friendly with Dong Fuxiang. Zaiyi wanted artillery for Dong's troops to destroy the legations. Ronglu blocked the transfer of artillery to Zaiyi and Dong, preventing them from destroying the legations. When artillery was finally supplied to the imperial army and Boxers, it was done in only limited amounts; Ronglu deliberately held back the rest of them. The Chinese forces defeated the small 2,000-man Western relief force at the Battle of Langfang, but lost several decisive battles, including the Battle of Beicang, and the entire imperial court was forced to retreat as the forces of the Eight-Nation Alliance invaded Beijing. Because moderates at the Qing imperial court tried to appease the foreigners by moving the Muslim Kansu Braves out of their way, the allied army was able to march into Beijing and seize the capital.

During the war, Cixi displayed concern about China's situation and foreign aggression, saying, "Perhaps their magic is not to be relied upon; but can we not rely on the hearts and minds of the people? Today China is extremely weak. We have only the people's hearts and minds to depend upon. If we cast them aside and lose the people's hearts, what can we use to sustain the country?" The Chinese people were almost unanimous in their support for the Boxers due to the Western Allied invasion.

When Cixi received an ultimatum demanding that China surrender total control over all its military and financial affairs to foreigners, she defiantly stated before the Grand Council, "Now they have started the aggression, and the extinction of our nation is imminent. If we just fold our arms and yield to them, I would have no face to see our ancestors after death. If we must perish, why not fight to the death?" It was at this point that Cixi began to blockade the legations with the armies of the Beijing Field Force, which began the siege.

Cixi stated that "I have always been of the opinion, that the allied armies had been permitted to escape too easily in 1860. Only a united effort was then necessary to have given China the victory. Today, at last, the opportunity for revenge has come", and said that millions of Chinese would join the cause of fighting the foreigners since the Manchus had provided "great benefits" to China.

During the Battle of Beijing, the entire imperial court, including Cixi and Guangxu, fled Beijing and evacuated to Xi'an as the allied forces invaded the city. After the fall of Beijing, the Eight-Nation Alliance negotiated a treaty with the Qing government, sending messengers to the empress dowager in Xi'an. Included in the terms of the agreement was a guarantee that China would not have to give up any further territories to foreign powers. Many of Cixi's advisers in the imperial court insisted that the war against the foreigners be continued. They recommended that Dong Fuxiang be given responsibility to continue the war effort. Cixi was practical, however, and decided that the terms were generous enough for her to acquiesce and stop the war, at least after she was assured of her continued reign when the war was concluded. The Western powers needed a government strong enough to suppress further anti-foreign movements, but too weak to act on its own; they supported the continuation of the Qing dynasty, rather than allowing it to be overthrown. Cixi turned once more to Li Hongzhang to negotiate. Li agreed to sign the Boxer Protocol, which stipulated the presence of an international military force in Beijing and the payment of £67 million (almost $333 million) in war reparations. The United States used its share of the war indemnity to fund the creation of China's prestigious Tsinghua University. Guangxu and Cixi did not return to Beijing from Xi'an until roughly 18 months after their flight.