Zhang Jianzhi
By spring 705, Wu Zetian was seriously ill again. Zhang Jianzhi, Jing Hui, and Yuan Shuji, planned a coup to kill the Zhang brothers. They convinced the generals Li Duozuo, Li Dan (, note different character than the former emperor), and Yang Yuanyan () and another chancellor, Yao Yuanzhi, to be involved. With agreement from Li Xian as well, they acted on 20 February, killing Zhang Yizhi and Zhang Changzong, and then they had Changsheng Hall (), where Wu Zetian was residing, surrounded. They then reported to her that the Zhang brothers had been executed for treason, and they then forced her to yield the throne to Li Xian. On 21 February, an edict was issued in her name that made Li Xian regent, and on 22 February, an edict was issued in her name passing the throne to Li Xian. On 23 February, Li Xian formally retook the throne, and the next day, Wu Zetian, under heavy guard, was moved to the subsidiary palace, Shangyang Palace (), but was nevertheless honored with the title of Empress Regent Zetian Dasheng (). On 3 March, the Tang dynasty was restored, ending the Zhou.