In 1902, he was reassigned to be the xunfu of Guangdong. However, before he could assume office, he was ordered to go to Sichuan instead to replace Kuijun () as the acting-Viceroy of Sichuan after the latter was dismissed from office for his failure to defeat Boxer rebels in Sichuan. While he was in Sichuan, he tightened and enforced government regulations strictly, set up a police force, and accused over 40 officials of corruption.
In 1902, he was reassigned to be the governor of Guangdong. However, before he could assume office, he was ordered to go to Sichuan instead to replace Kuijun () as the acting-governor of Sichuan after the latter was dismissed from office for his failure to defeat Boxer rebels in Sichuan. While he was in Sichuan, he tightened and enforced government regulations strictly, set up a police force, and accused over 40 officials of corruption.