Wu Sansi
In spring 706, with all five of the coup leaders already out of the capital, Wu Sansi and Empress Wei made accusations against them, and they were demoted to more remote prefectures (although Zhang was not moved). Wu Sansi then had his strategist Zheng Yin further accuse the five of them of having participated in the plot of Emperor Zhongzong's son-in-law Wang Tongjiao () -- who was executed early in 706 after having been accused of plotting to kill Wu Sansi and deposing Empress Wei. The five were further demoted with the provisions that they would never be allowed to return to the capital Chang'an, with Zhang becoming the military advisor to the prefect of Xin Prefecture (新州, roughly modern Yunfu, Guangdong). Wu Sansi then had accusations that Empress Wei was having affairs posted publicly in Luoyang (now eastern capital, with the capital moved back to Chang'an), with the intent of incensing Emperor Zhongzong—and then accused the five coup leaders of being behind this public humiliation. He then had his associates propose that the five be killed. Emperor Zhongzong, citing that the five had been previously awarded iron certificates that guaranteed that they would not be executed in recognition of their contribution, ordered that they be reduced to commoner rank and permanently exiled to the Lingnan region with their families—in Zhang's case, to Long Prefecture (瀧州, in modern Ganzhou, Jiangxi). At the suggestion of Cui Shi, Wu Sansi then sent the censor Zhou Lizhen () to the Lingnan region under guise of reviewing the affairs of the region but with instructions to kill the five. By the time that Zhou reached the region, though, Zhang had already died. After Emperor Zhongzong's death in 710 and Li Dan, himself a former emperor, was restored (as Emperor Ruizong), Zhang and his colleagues were posthumously honored.