Yuan Shuji , formally Prince Zhenlie of Nanyang, was an official of the Chinese dynastyTang Dynasty and Wu Zetian's Zhou Dynasty, serving as chancellor during the reign of Emperor Zhongzong. He was a key figure in the coup that overthrew Wu Zetian and restored Emperor Zhongzong in 705, but was later exiled due to false accusations instigated by Wu Zetian's nephew Wu Sansi and killed in exile in a cruel manner.
Background
It is not known when Yuan Shuji was born. His family was from Cang Prefecture and traced its ancestry to the late Han Dynasty warlord Yuan Shao. Both Yuan Shuji's grandfather Yuan Lingxi and father Yuan Yihong served as prefectural officials.
During Wu Zetian's reign
Sometime during Wu Zetian's Chang'an era, Yuan Shuji served as assistant chief judge of the supreme court and military advisor to Wu Zetian's son Li Dan the Prince of Xiang. As of 704, he was serving as Youtai Zhongcheng, an imperial censor. In spring 705, with Wu Zetian being ill, Cui entered into a plot with a number of officials and generals, including Zhang Jianzhi, Cui Xuanwei, Huan Yanfan, and Jing Hui, to kill her lovers Zhang Yizhi and Zhang Changzong. With agreement from Li Xian the Crown Prince, they acted on February 20, killing Zhang Yizhi and Zhang Changzong, and then surrounding Wu Zetian. While they allowed her to retain the title of "emperor," they had her put under house arrest at the secondary palace Shangyang Palace and forced her to yield the throne to Li Xian, who was formerly emperor, and he was restored to the throne. During the coup, Yuan's responsibility was to accompany Li Dan and make sure that no unusual incidents would happen involving Li Dan, and after coup was successful, Yuan was immediately made, by an edict issued in Wu Zetian's name, Fengge Shilang, the deputy head of the legislative bureau of government and given the designation Tong Fengge Luantai Pingzhangshi. Two days later, Emperor Zhongzong was formally restored.
During Emperor Zhongzong's second reign
Yuan Shuji, along with Zhang Jianzhi, Cui Xuanwei, Huan Yanfan, and Jing Hui, were recognized as leaders in Emperor Zhongzong's restoration, and they were put into key positions and created dukes, with Yuan becoming continuing to serve as Fengge Shilang and carrying the greater chancellor designation of Tong Fengge Luantai Sanpin, and carrying the title of Duke of Nanyang. One of the main acts that Yuan was recorded to have done was to speak against the deputy minister of construction Yang Wulian, accusing Yang of encouraging wasteful construction and not making useful suggestions to the emperor, and Yang was demoted to be a prefectural prefect. Yuan was then further elevated to be Zhongshu Ling, the head of the legislative bureau. Soon, however, Emperor Zhongzong became heavily influenced by his wife Empress Wei and her lover Wu Sansi the Prince of Liang. Zhang fervently argued against the rise of Wu Sansi's power but was unable to do anything about it. In summer 705, by which time Emperor Zhongzong's trust in Yuan and his colleagues had completely been lost, Emperor Zhongzong, following Wu Sansi's recommendation, created the five coup leaders princes—in Yuan's case, Prince of Nanyang—but stripped them of chancellor positions. In spring 706, Yuan was further sent out of the capital Chang'an to serve as the prefect of Yu Prefecture. Later 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—in Yuan's case, to be the prefect of Ying Prefecture. 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 Yuan becoming the military advisor to the prefect of Dou Prefecture. Wu Sansi then had accusations that Empress Wei was having affairs posted publicly in the eastern capital Luoyang, 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 Yuan's case, to Huan Prefecture. 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. When Zhou arrived at Yuan's place of exile, he forced Yuan to drink the juice of the poisonous plantGelsemium elegans, but Yuan did not die immediately—a fact that traditional historians attributed to Yuan's frequently taking an alchemist medication known as "yellow gold". However, he suffered immensely from the poison and was angry over how he was treated, and he toiled on the ground, scratching it, causing his nails to fall off. Zhou then had him caned to death. After Emperor Zhongzong's death in 710 and Li Dan, himself a former emperor, was restored, Yuan and his colleagues were posthumously honored.