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.
Yikuang was then sent by Empress Dowager Cixi, along with Li Hongzhang, to negotiate for peace with the Eight-Nation Alliance after they invaded Beijing in 1901.