總理各國事務衙門
During the Boxer Rebellion from 1899 to 1901, Yikuang was more sympathetic towards the foreigners whereas Zaiyi (Prince Duan) sided with the Boxers against the foreigners. Two factions were formed in the Qing imperial court – one comprised a number of "moderate" pro-foreign politicians, including Yikuang, while another xenophobic faction was headed by Zaiyi. However, Yikuang was discredited for his pro-foreign stance when a multi-national military force marched into Beijing during the Seymour Expedition of 1900. He was immediately replaced by the "reactionary" Zaiyi as the leader of the Zongli Yamen (the foreign affairs ministry). Qing imperial forces and Boxers, acting under Zaiyi's command, defeated Seymour's first expedition. Yikuang even wrote letters to foreigners, inviting them to take shelter in the Zongli Yamen during the Siege of the International Legations, when Zaiyi's men besieged the Beijing Legation Quarter. Another pro-foreign general, Ronglu, offered to provide escorts to the foreigners when his soldiers were supposed to be killing foreigners. Yikuang and Zaiyi's forces clashed several times. Yikuang ordered his own Bannermen to attack the Boxers and the Kansu Braves.