Wu Yuanji
Wu Yuanji was a general of the Chinese dynasty Tang Dynasty who tried to control Zhangyi Circuit without approval from Emperor Xianzong after the 814 death of his father Wu Shaoyang, who had governed the circuit in a de facto independent manner from the imperial government. Emperor Xianzong declared a campaign against Wu, and imperial troops under Li Su were eventually able to defeat and capture him. He was delivered to the Tang capital Chang'an and executed there.
Background
The biographies of Wu Yuanji in the Old Book of Tang and the New Book of Tang conflict as to when he was born — with the Old Book of Tang indicating that he was born in 783 and the New Book of Tang indicating that he was born in 793. In any case, a major part of Wu Yuanji's life would have been spent during the time when his father Wu Shaoyang served under Wu Shaocheng the military governor of Zhangyi Circuit — who was not biologically related to Wu Yuanji but who was endeared to Wu Shaoyang and treated Wu Shaoyang as a cousin. In 809, when Wu Shaocheng was seriously ill, Wu Shaoyang killed Wu Shaocheng's son Wu Yuanqing and took over control of the circuit. Then-reigning Emperor Xianzong, already engaged in a campaign against another warlord, Wang Chengzong the military governor of Chengde Circuit, was unable to act against Wu Shaoyang, and thus made Wu Shaoyang acting military governor and then military governor of Zhangyi.Wu Yuanji was Wu Shaoyang's oldest son, and he had at least two younger brothers. While Wu Shaoyang governed the circuit, Wu Yuanji was made the acting prefect of Zhangyi's capital prefecture Cai Prefecture.
Campaign against the imperial government
Wu Shaoyang's death and aftermaths
In 814, Wu Shaoyang died. Wu Yuanji kept Wu Shaoyang's death a secret and reported to the imperial government that Wu Shaoyang was ill; meanwhile, he took over control of the circuit. Previously, Wu Shaoyang's staff members Su Zhao and Yang Yuanqing, as well as his officer Hou Weiqing, had all recommended that Wu Shaoyang go to the capital Chang'an to pay homage to Emperor Xianzong, to show submission to the imperial government, and after Wu Yuanji took over, he suspected them of betraying him. He thus killed Su and imprisoned Hou. At that time, Yang was at Chang'an, and hearing this news, he informed the chancellor Li Jifu of all of Zhangyi's strengths and weaknesses. At Yang's suggestion, the messengers that Zhangyi had sent to the other circuits were detained where they were. Further, contrary to customs that, when a major general died, that the emperor would declare a day of mourning, the imperial government did not do so, but mobilized the armies of the circuits around Zhangyi to prepare for a campaign. With these events occurring, Wu Yuanji killed Yang's wife and four sons and used their blood to paint the archery range. He made Wu Shaocheng's son-in-law Dong Chongzhi his main strategist.Meanwhile, with Li Jifu advocating a campaign against Zhangyi, Emperor Xianzong prepared for one. At the suggestion of another chancellor, Zhang Hongjing, Emperor Xianzong declared a day of mourning for Wu Shaoyang and sent the official Li Junhe to Zhangyi to mourn Wu Shaoyang, to see how Wu Yuanji would react. Wu Yuanji, however, refused Li Junhe admission to the circuit, and further mobilized his army. He attacked Wuyang and slaughtered its population; burned Ye County ; and pillaged Lushan and Xiangcheng. Li Junhe was forced to return to Chang'an.
Initial stages
Emperor Xianzong put the general Yan Shou in command of the overall operations against Zhangyi and mobilized the armies of 16 circuits. In spring 815, after some small victories against Zhangyi, Yan became careless, and the Zhangyi forces fought back, defeating him at Ciqiu, forcing him to flee back to Tang Prefecture. The Zhangyi forces also defeated the troops from Shou Prefecture, forcing the prefect of Shou Prefecture, Linghu Tong, to flee back to Shou's main city, while the Zhangyi forces slaughtered the Shou troops remaining on the border.Meanwhile, Wu Yuanji sought help from Wang Chengzong and Li Shidao the military governor of Pinglu Circuit. Both Wang and Li pleaded with Emperor Xianzong on Wu's behalf, seeking his exoneration. Emperor Xianzong refused. In response, Li sent his soldiers to conduct guerilla warfare in the regions of the eastern capital Luoyang. Later, believing that assassinating the pro-campaign chancellor Wu Yuanheng and the official Pei Du would cause the other officials to advocate peace, Li also sent assassins to kill Wu Yuanheng and Pei; Wu Yuanheng died in the attack, but Pei was only wounded. Emperor Xianzong subsequently made Pei a chancellor and became further resolved to continue the campaign. Further, not yet learning of Li's involvement and believing that Wang was behind the assassinations, he ordered another campaign against Wang.
With Yan not making much headway against Zhangyi forces, in late 815, Emperor Xianzong put Han Hong the military governor of Xuanwu Circuit in charge of the operations against Zhangyi instead, but it was said that Han did not fully embrace the campaign and did not work hard toward Zhangyi's destruction. With the imperial troops converging, both sides had victories — although it was noted by historians that the imperial generals often exaggerated their victories against Zhangyi forces and hid their defeats from the emperor. The imperial generals Li Guangyan the military governor of Zhongwu Circuit and Wu Chongyin the military governor of Heyang Circuit were having success against Zhangyi forces, but in spring 816, Zhangyi forces dealt Gao Xiayu the military governor of Tangsuideng Circuit a major defeat, such that Gao barely escaped with his life. Emperor Xianzong demoted Gao and Li Xun the military governor of Shannan East Circuit and replaced Gao with Yuan Zi. When Yuan subsequently took a passive stance against Zhangyi, however, Emperor Xianzong replaced him with Li Su.
Decades later, after Du Mu interviewed Dong Chongzhi with regard to his memories about these years of the Zhangyi campaign, Du recounted what Dong told him:
Defeat by Li Su
As Li Su was not well known, and the Zhangyi forces had defeated Gao Xiayu and Yuan Zi previously, it was said that the Zhangyi forces did not consider Li a threat and did not take much precautions against him. Li, after receiving reinforcements from several circuits, began to carry out military actions in which he targeted Zhangyi officers, captured them, and then treated them well and incorporated them into his command structure, using their familiarity with Zhangyi's defenses against Zhangyi. Such Zhangyi officers he thus captured included Ding Shiliang, Chen Guangqia, Wu Xiulin, Li Xian, and Li You. Meanwhile, with Zhangyi's food supplies running low, the people were forced to initially resort to eating water caltrop, fish, freshwater turtles, birds, and beasts, but after those plants and animals ran out, the people started surrendering to the imperial forces en masse. The Zhangyi forces, believing that detaining the people would merely lead to quicker drain on resources, did not stop them.Meanwhile, in addition to Li Su, Li Guangyan and Wu Chongyin were also continuing to deal Wu Yuanji defeats, capturing the important city of Yancheng in summer 817. Wu Yuanji put Dong Chongzhi in charge of his strongest army, which rode mules, and Dong was stationed at Huiqu to defend against further attacks by imperial forces from Yancheng. Pei Du volunteered to serve as the overall commander of the operations, and Emperor Xianzong agreed. Pei soon arrived on the front and personally monitored the troop advancements. With Zhangyi in great difficulty, Wu Yuanji offered to surrender to Emperor Xianzong, and Emperor Xianzong was initially inclined to accept and promised not to execute Wu, but with Dong opposing capitulation, Wu's surrender never came.
On November 27, 815, at dusk, Li Su launched an attack, from his then-base of Wencheng Fence, and, after dusk, after destroying the bridges between Huiqu and Cai Prefecture, and with a major winter snowstorm serving as cover, he advanced quickly to Cai Prefecture. With Li You and Li Zhongyi leading the forward attack, Li Su's forward soldiers climbed up the city walls and surprised the defending soldiers, killing them without engagements and then opening the city to allow the remainder of Li Su's soldiers to enter. Li Su's forces then attacked Wu Yuanji's fortified mansion. Wu Yuanji still commanded his own guards to defend against the attack. During the battle, Li Su, believing that Wu Yuanji's last hope would be if Dong returned quickly to save him, personally visited Dong's house and asked Dong's son Dong Chuandao to go to Dong Chongzhi's camp to express Li Su's good faith. Dong Chongzhi immediately abandoned his troops and returned to Cai Prefecture to surrender to Li Su. On November 29, with even the residents of Cai Prefecture joining the attack on Wu's headquarters, Wu surrendered. Li Su put him under arrest and delivered him to Chang'an.
Death
On December 12, Emperor Xianzong ascended the palace gate to receive Wu Yuanji as a captive. He had Wu delivered to the imperial ancestral temples, as if to be offered as a sacrifice, and then had him beheaded under a lone willow.During Wu's campaign against the imperial government, Li Shidao had sent his officer Liu Yanping to Zhangyi as a messenger to observe Wu's status. After Liu returned to Pinglu, he gave this report to Li Shidao as far as his observation of Wu was concerned: