 He entered the military academy at Tianjin in 1885, becoming an instructor in 1887.In 1905, he was put in charge of New Army units from Shandong and Guangdong provinces.In 1911, he was sent to suppress the Wuchang Uprising, but later went supported the revolutionaries through the influence of relative Feng Yuxiang.