Pei, in fear, informed this to Empress Dowager Wu. Just less than two months after Emperor Zhongzong had taken the throne, Empress Dowager Wu summoned the officials and generals and issued an edict deposing Emperor Zhongzong and reducing to the title of Prince of Luling. She instead created his younger brother Li Dan the Prince of Yu emperor (as Emperor Ruizong). Li Chongzhao, who had been given the title of Deputy Crown Prince by Emperor Gaozong, was reduced to commoner rank, and Wei Xuanzhen, along with his family, were exiled to Qin Prefecture (欽州, roughly modern Qinzhou, Guangxi). Empress Dowager Wu soon ordered that Li Zhe and his family first be delivered to Fang Prefecture (房州, in modern Shiyan, Hubei), and then Jun Prefecture (均州, also in modern Shiyan), to be held under house arrest at the house that his uncle Li Tai had been placed after Li Tai was deposed in 643.
At this point, they were deeply in love with each other, and at another point, he told her:
While they in exile, she gave birth to their youngest daughter, Li Guo'er -- whose name Guo'er meant, "child who was wrapped" and referred to how, when she was born, Li Zhe was required to take off his shirt and wrap her in the shirt. Li Zhe and Princess Wei both greatly favored this child born in distress.
Meanwhile, while Li Zhe and Princess Wei were in exile, so were Wei Xuanzhen and his family. After Wei Xuanzhen died soon thereafter, a local tribal chief, Ning Chengji (寧承基), demanded to marry Princess Wei's younger sister. When Princess Wei's mother Lady Cui refused, Ning killed her and her four sons Wei Xun (韋洵), Wei Hao (韋浩), Wei Dong (韋洞), and Wei Ci (韋泚).
While Li Zhe and Princess Wei were in exile, Empress Dowager Wu had, in 690, forced Li Zhe's brother Li Dan to yield the throne to her, interrupting Tang Dynasty and establishing her own Zhou Dynasty with her as "emperor" (thereafter known as Wu Zetian). She created the now-removed Li Dan as her crown prince, but constantly suspected him of secretly plotting against her, and in 693, she killed his wife Crown Princess Liu and concubine Consort Dou, and further investigated him for treason, stopping the investigation only when his servant, An Jinzang (安金藏), cut open his own belly to swear that Li Dan would never commit treason. She nevertheless repeatedly consider replacing him with her nephews Wu Chengsi the Prince of Wei and Wu Sansi the Prince of Liang.
By 698, however, the chancellor Di Renjie had convinced Wu Zetian that it was to her sons, not her nephews, that she should turn for support. Di's fellow chancellors Wang Fangqing and Wang Jishan, as well as Wu Zetian's lovers Zhang Yizhi and Zhang Changzong and her confidant Ji Xu also supported the idea of summoning Li Zhe from exile. In spring 698, Wu Zetian summoned Li Zhe and his family back to Luoyang.
Meanwhile, Wu Zetian, in her old age, had entrusted much of the affairs of state to Zhang Yizhi and Zhang Changzong -- something that Li Chongrun discussed with his sister Li Xianhui and her husband, Wu Zetian's grandnephew Wu Yanji (武延基) the Prince of Wei (Wu Chengsi's son) at times. Zhang Yizhi found out and informed Wu Zetian. Wu Zetian, believing that she was being criticized, in fall 701, ordered Li Chongrun, Li Xianhui, and Wu Yanji to commit suicide. Li Chongrun's death would leave Crown Princess Wei without a son, as his other sons Li Chongfu, Li Chongjun, and Li Chongmao were all born of concubines.
In spring 705, with Wu Zetian being ill, the officials Zhang Jianzhi, Cui Xuanwei, Jing Hui, Huan Yanfan, and Yuan Shuji initiated a coup and killed Zhang Yizhi and Zhang Changzong. They forced Wu Zetian to yield the throne back to Wu Xiǎn, and he returned to the throne, restoring Tang Dynasty. He created Crown Princess Wei empress again. He also posthumously honored her father Wei Xuanzhen as the Prince of Shangluo and her mother Lady Cui as the Princess of Shangluo, reburying them in grand ceremonies. In addition, he posthumously honored Li Chongrun as Crown Princess Yide and Li Xianhui as Princess Yongtai, reburying them with ceremonies due emperors.
Wu Sansi and Empress Wei, who despised Zhang and his colleagues, accused them of being overly arrogant in light of their achievements, and at Wu Sansi's suggestion, Emperor Zhongzong created Zhang, Jing Hui, Huan Yanfan, Yuan Shuji, and Cui Xuanwei princes, ostensibly to honor them, but instead was intending to remove them from positions of power. (Emperor Zhongzong, for reasons unclear, also bestowed the surname of Wei on Huan, "honoring" him by merging his clan with Empress Wei's.) Soon, the five princes were made prefectural prefects and sent out of Luoyang.
In spring 706, after Emperor Zhongzong's son-in-law Wang Tongjiao (王同皎), who despised Empress Wei and Wu Sansi, was accused of plotting to kill them, Empress Wei and Wu Sansi took this opportunity to implicate Jing, Cui, Huan (whose Wei surname was then stripped), Yuan, and Zhang, of being involved in the plot, and had them further reduced to be prefectural military advisors in distant prefects. Wu Sansi then intentionally inflamed Emperor Zhongzong by having people publicly accuse Empress Wei of adultery and then accusing the five princes of this. Emperor Zhongzong responded by ordering the five of them permanently exiled; Wu then sent the official Zhou Lizhen (周利貞) to have the five of them killed cruelly (although Zhang and Cui were already dead by the time that Zhou reached them).
Meanwhile, to avenge her mother's and brothers' deaths, Empress Wei had Emperor Zhongzong order Zhou Rengui (周仁軌), the commandant at Guang Prefecture (廣州, roughly modern Guangzhou, Guangdong), to attack Ning Chengji and his brothers; Zhou defeated Ning and slaughtered his people. In gratitude, Empress Wei bowed to Zhou, honoring him like a father, and Emperor Zhongzong created Zhou the Duke of Ru'nan.
Despite Li Chongjun's status as crown prince, Li Guo'er and her husband Wu Chongxun often humiliated and harassed him, sometimes referring to him as a slave. Further, Li Guo'er was continuing to try to persuade Emperor Zhongzong to depose Li Chongjun and create her crown princess instead. Li Chongjun finally erupted in anger in fall 707, rising with the ethnically Mohe general Li Duozuo and Emperor Zhongzong's cousin Li Qianli (李千里) the Prince of Cheng. Li Chongjun's forces killed Wu Sansi and Wu Chengxu, and next headed to the palace, hoping to capture Consort Shangguan and Empress Wei. However, after Li Duozuo's son-in-law Ye Huli (野呼利) was killed by the eunuch guard commander Yang Sixu (楊思勗), Li Chongjun's army collapsed, and he was soon killed by his own subordinates. (Li Guo'er soon married Wu Chengxun's cousin Wu Yanxiu (武延秀).)
It was said by 708, Empress Wei, Li Guo'er, Empress Wei's other daughter Princess Changning, Consort Shangguan, Empress Wei's sister Lady of Cheng, Consort Shangguan's mother Lady Zheng, along with senior ladies in waiting Ladies Chai and Helou, the sorceress Diwu Ying'er (第五英兒), and Lady Zhao of Longxi, were all powerful and corrupt, selling offices at will. They, along with Emperor Zhongzong's sister Princess Taiping, were often involved in partisan struggles, a phenomenon that Emperor Zhongzong was concerned about, but could do little to curb. Empress Wei's power was such that around the new year 709, when Emperor Zhongzong offered to have her old wet nurse Lady Wang marry the widower chancellor Dou Chongyi, Dou, seeing the opportunity for even more power, gleefully agreed notwithstanding Lady Wang's otherwise low status. Meanwhile, Empress Wei and the Princesses Changning and Anle were also building many Buddhist temples.
By fall 710, it was said that Empress Wei had been having affairs with the officials Ma Qinke (馬秦客) and Yang Jun (楊均), and Ma and Yang were concerned that if the affairs became known they would be killed. Meanwhile, Li Guo'er hoped that if Empress Wei became the sovereign she would be crown princess. They conspired to poison a cake, and after Emperor Zhongzong ate the cake, he died, on July 3, 710. Empress Wei did not initially announce his death, but instead a number of her cousins in charge of the imperial guards, to secure power, before she announced Emperor Zhongzong's death two days after his death. By an edict that Princess Taiping and Consort Shangguan drafted (and later revised by Empress Wei's cousin Wei Wen), Emperor Zhongzong's son Li Chongmao the Prince of Wen was created crown prince, and Li Chongmao then took the throne (as Emperor Shang) on July 8. Empress Wei retained power as empress dowager.
Without first informing Li Dan, the conspirators rose on July 21, first killing Wei Bo, Gao, and Empress Wei's cousin Wei Gui (韋璿). They then attacked the palace. When Empress Dowager Wei panicked and fled to an imperial guard camp, a guard beheaded her. Li Guo'er, Wu Yanxiu, and Lady Helou were killed as well. Li Longji soon slaughtered a number of officials in Empress Dowager's faction as well as her clan, while displaying Empress Dowager Wei's body on the street. At the urging of Princess Taiping, Li Longji, and Li Longji's brother Li Chengqi, Li Dan soon took the throne from Li Chongmao and again became emperor (as Emperor Ruizong). Empress Dowager Wei was posthumously reduced to commoner rank. Emperor Ruizong still buried her with honors, but not with honors due an empress, but rather with honors due an official of the first rank.

