Xue Ping
Xue Ping (薛平) (c. 753? – February 25, 832), courtesy name Tantu (坦途), formally the Duke of Han (韓公), was a general of the Chinese Tang Dynasty, whose father Xue Song ruled Zhaoyi Circuit (昭義, then-headquartered in modern Anyang, Henan) semi-independently from the imperial government. After Xue Song's death, Xue Ping declined the soldiers' request for him to take over Zhaoyi Circuit and fled to imperial territory. Subsequently, he had a long career as a general of the imperial armies. Background and career under Emperors Daizong, Dezong, and Shunzong. Xue Ping was born in 753, during  the reign of Emperor Xuanzong. When he was 11, during the reign of Emperor Xuanzong's grandson Emperor Daizong, he was made the prefect of Ci Prefecture (磁州, in modern Handan, Hebei), one of the prefectures then under the rule of his father Xue Song, the military governor ("Jiedushi") of Zhaoyi Circuit, a former general of the rebel Yan state of the Anshi Rebellion who submitted to Tang Dynasty rule in the aftermaths of Yan's collapse but who thereafter ruled Zhaoyi Circuit semi-independently from the imperial government. When Xue Song died in 773, the soldiers demanded that Xue  Ping inherit the command of the circuit. Xue Ping initially pretended to agree, but then yielded the command to his uncle Xue E and, in the middle of the night, took his father's casket and fled back to his father's ancestral home of Jiang Prefecture (絳州, in modern Yuncheng, Shanxi). Xue E subsequently was unable to stand against the attacks by the neighboring warlord Tian Chengsi the military governor of Weibo Circuit (魏博, headquartered in modern Handan) and forced to flee; part of Zhaoyi Circuit was merged into Weibo Circuit and part was merged with the imperially-controlled  Zelu Circuit (澤潞, headquartered in modern Changzhi, Shanxi), with the newly constituted circuit still named Zhaoyi. Meanwhile, after Xue Ping completed his period of mourning for his father, Emperor Daizong made him a general of the imperial guards — where he stayed for over 30 years. Career under Emperors Xianzong and Muzong. Later, during the reign of Emperor Daizong's great-grandson Emperor Xianzong, the chancellor Du Huangchang believed that Xue Ping was talented and recommended him to be the prefect of Ru Prefecture (汝州, in modern Pingdingshan, Henan), and Xue governed with distinction. By 812, Xue was referred to as  a major general of the imperial guards, when he was made the military governor of Yicheng Circuit (義成, headquartered in modern Anyang, Henan) in the aftermaths of the death of the warlord Tian Ji'an (Tian Chengsi's grandson) the military governor of Weibo, as part of the imperial maneuvering to try to control Weibo. (Subsequently, Tian Ji'an's relative Tian Xing (who was later renamed Tian Hongzheng) seized control of Weibo from Tian Ji'an's son Tian Huaijian and submitted to the imperial government.) While Xue Ping was at Yicheng, he dealt with the issue of Yellow River flooding his  circuit — as Yicheng's capital Hua Prefecture () was just two "li" (about one kilometer) away from the Yellow River and often suffered from catastrophic floods. Xue Ping conducted surveys and found traces of the old Yellow River bed. After a joint petition he made with Tian Hongzheng (who became the military governor of Weibo), they dug into the old river route for 14 "li" (about seven kilometers) to divert some of the water from then-route of the Yellow River, and thus decreasing the threat of flooding for Yicheng. Xue was at Yicheng for six years before being recalled to  again serve as a general of the imperial guards, but was soon sent back to Yicheng to again serve as military governor. In 819, after Emperor Xianzong destroyed the warlord Li Shidao, who ruled Pinglu Circuit (平盧, headquartered in modern Tai'an, Shandong), Emperor Xianzong divided Pinglu into three circuits, with the circuit that kept the Pinglu name having its headquarters moved to Qing Prefecture (青州, in modern Weifang, Shandong). He made Xue the military governor of Pinglu, as well as the official in charge of relations with Silla and Balhae. (It was because Xue was familiar with the customs of  the region north of the Yellow River and his faithfulness to the imperial government that, when, in 821, by which time Emperor Xianzong's son Emperor Muzong was emperor, Liu Zong the military governor of Lulong Circuit (盧龍, headquartered in modern Beijing), which had also long been ruled independently from the imperial government, surrendered Lulong to imperial control, Liu recommended dividing Lulong into three circuits with Xue, the former chancellor Zhang Hongjing, and the official Lu Shimei () taking the commands of the three circuits, although Liu's recommendations were not heeded, and the command of Lulong was given to Zhang  with only a small portion carved out and given to Lu.) Later in 821, the Lulong soldiers rebelled against Zhang and arrested him, and soon thereafter, the Chengde Circuit (成德, headquartered in modern Shijiazhuang, Hebei) soldiers also rebelled and killed Tian (who had been transferred to Chengde). In the aftermaths, the imperial government waged an ultimately unsuccessful campaign against Lulong and Chengde, and during the campaign, the rebels threatened Di Prefecture (棣州, in modern Binzhou, Shandong) of Pinglu's neighboring Henghai Circuit (橫海, headquartered in modern Cangzhou, Hebei). Xue sent his officer Li Shuzuo () to help defend Di Prefecture, but  when Wang Ji () the prefect of Di Prefecture did not supply the Pinglu soldiers to their satisfaction, the soldiers mutinied and supported the officer Ma Tingfu () as their leader and returned to Qing Prefecture to attack it. At that time, Qing Prefecture had few troops and could not defend against the attack, but Xue expended both the circuit treasury and his own wealth to hire some 2,000 soldiers, and with these soldiers he defeated and killed Ma. As a result, Emperor Muzong gave Xue the honorary title of "You Pushe" () and created him the Duke of Wei. Career under Emperors  Jingzong and Wenzong. Xue Ping remained at Pinglu for six years, and it was said that he prepared the troops well and taxed in a fair manner. When, in 825, during the reign of Emperor Muzong's son Emperor Jingzong, Xue was set to go to the capital Chang'an to pay homage to Emperor Jingzong and remain there, the residents were said to be so saddened that they tried to block his way to stop him from leaving. When he arrived at Chang'an, he was briefly made the minister of census (戶部尚書, "Hubu Shangshu") and acting "Zuo Pushe" (), one of  the heads of the executive bureau of government (尚書省, "Shangshu Sheng"). In a month, however, he was commissioned as the military governor of Hezhong Circuit (河中, headquartered in modern Yuncheng) and acting "Sikong" (司空, one of the Three Excellencies). In 828, after two prefectures were added to his circuit, he was further made acting "Situ" (司徒, also one of the Three Excellencies); his title was also changed to Duke of Han. He was recalled in 830 to serve as senior advisor to the Crown Prince. He requested retirement in 831 and was allowed to do so. He died in 832  and was given posthumous honors.