After returning to Beijing/Tianjian in 1888, Zhang managed to find work as a secretary/scribe for his former political enemy, Li Hongzhang [REF].
In 1903, Zhang died in Nanjing at the age of 56 due to an unspecified liver disease.