Cixí
After returning to China, Duanfang served as Viceroy of Liangjiang. In 1909, he became Governor of Zhili. Due to photographs being taken at the funeral of Empress Dowager Cixi, Duanfang was dismissed from office.