撫州市
After Zhang was released, he was made the prefect of Fu Prefecture (撫州, in modern Fuzhou, Jiangxi). He was soon made an advisor to the Crown Prince Li Zhan. He died in 824, shortly after Emperor Muzong's death and Li Zhan's succession to the throne as Emperor Jingzong.