There were four changes in Xuanwu Gate in Tang Dynasty.
The first coup took place in the ninth year of Wude, Tang Gaozu (AD 626), which was the total outbreak of the struggle for the throne among Li Shimin, Li and Li Yuanji.
The second coup took place in January of the first year of Tang Zhongzong Shenlong (AD 705). At that time, Wu Zetian had been proclaimed emperor 14 years, very old and very ill. Some officials who had long been dissatisfied with her "Wuzhou Revolution" and hoped to restore the Tang Dynasty, led by Zhang Jianzhi and Cui Xuanyong, the prime ministers of Fengge Luantai Pingzhang, took the opportunity to start an uprising. General Zhang, Cui, Zuo Liangyu and Lin Wei led more than 500 people to occupy Xuanwu Gate, greeted the Prince from the East Palace, and then marched into the Palace together until the Yingxian Palace where Wu Zetian was buried, killing our station supervisor and Wu Zetian's favorite assistant minister Zhang Zongchang, forcing Wu Zetian to abdicate and establishing the throne of the Prince and the title of the dynasty.
The third time was the coup of Prince Li Zhongjun in the first year of Tang Zhongzong Jinglong (AD 707). After the reset, the Chinese emperor Li Xian was weak and incompetent, while the Queen Webster was very strong. She colluded with Wu Sansi inside and outside and took charge of the state affairs. Wei Hou doesn't like Prince Chong because he is not his own. Sansi was also jealous of Chongjun, conniving at his son, General Xu, Wu Chongxun, and his daughter-in-law, Princess Anle, who often abused Chongjun and even called Chongjun a slave. Chongxun also taught the princess to ask Zhongzong to depose the prince and be the wife of the emperor himself. I finally couldn't help it. In July of the first year of Jinglong, Li Duozuo, a general of Zuo Yulin, joined hands and pretended to serve a letter. He led Zuo Yulin and thousands of cavalry to rush into the mansion of Wu Sansi and Wu Chongxun, killed them, and then sent troops to surround the palace and demand Wei Hou and Princess Anle. When Hou Wei heard of the change, he took Zhongzong to the Xuanwumen Gate and transferred troops to suppress it. Chongjun led an army to attack the front of Xuanwu Gate. Zhongzong declared to the sergeant that he admired the monarch and rebelled, so the sergeant rebelled and killed Li Duozuo and others. The partisans who worshipped the army immediately broke up, and the coup suddenly fell apart. Jun Jeong fled to Zhong Nanshan and was hunted down.
The fourth time was a coup in Li Longji in the fourth year of Tang Zhongzong Jinglong (AD 7 10). In June of that year, Wei Hou and Princess Anle conspired to poison Emperor Li Xian of Zhongzong and made Li Zhongmao Emperor Wen. I wanted to follow the example of Wu Zetian, so I planted Wei's children in the key departments of both capital and capital, gathered party members, and prepared to depose Mao and start his own business, but I was afraid of opposition from Qiu Lidan, so I tried to kill him. Li Longji, the son of King Xiang and the king of Linzi, received a tip-off, that is, he joined forces with Princess Taiping and rushed into the Yulin Army, killing Zhuo Wei and Weber sent by Wei Hou to lead the guards, occupying Xuanwu Gate, and then dividing into two ways, he broke into the palace and killed Wei Hou and Princess Anle. Li Dan, the prime minister, and Longji's father and son hold the military and political power. Later, they prevented the young emperor from giving way to Mao, and the Prime Minister ascended the throne for Zong Rui.
Li Longji launched the fourth Xuanwu Gate Revolution.