Born in Wenxi County, Jiangzhou, as the son of the former Sui Grand Master of Splendid Happiness of the Left Pei Renji.

619 CE–682 CE
Pei Xingjian (裴行俭)
裴行俭
Pei Xingjian (裴行俭), courtesy name Shouyue (守约), a native of Wenxi County in Jiangzhou (modern Wenxi County, Yuncheng, Shanxi), was anoutstanding military strategist, statesman, and calligrapher of the early and high Tang dynasty. Born into the Middle Branch of the Hedong Pei clan as the younger son of the Sui general Pei Renji, he entered the Institute for the Advancement of Literature by hereditary privilege, passed the…
PROFILE
Pei Xingjian (裴行俭), courtesy name Shouyue (守约), a native of Wenxi County in Jiangzhou (modern Wenxi County, Yuncheng, Shanxi), was anoutstanding military strategist, statesman, and calligrapher of the early and high Tang dynasty. Born into the Middle Branch of the Hedong Pei clan as the younger son of the Sui general Pei Renji, he entered the Institute for the Advancement of Literature by hereditary privilege, passed the Classics examination, and learned the art of war directly from the renowned general Su Dingfang. In 655, while serving as Magistrate of Chang'an County, he was demoted to Chief Clerk of the Xizhou Area Command for privately opposing the elevation of Empress Wu Zetian alongside Zhangsun Wuji and Chu Suiliang, rising in 665 to Protector-General of Anxi. Recalled as Vice Minister of Personnel, he managed civil service selection for over a decade with Li Jingxuan and Ma Zai, instituting the "Long Name Roster" (Changming Bang) and statutory appointment rules. In 679, under the pretext of escorting the Persian prince Narsieh home, he staged a hunting expedition in the Western Regions to capture the rebel Western Turkic qaghan Ashina Duzhi and Li Zhefu without shedding a drop of blood, earning concurrent appointment as Minister of Rites and Acting General-in-Chief of the Right Guard. From 679 to 680, commanding over 300,000 troops as Grand Commander-in-Chief of the Dingxiang Expeditionary Army, he crushed the Eastern Turkic rebellion of Ashide Wenfu and Ashina Funian through ambushes hidden in grain wagons, a famous night camp relocation before a flash flood, and counter-espionage. Enfeoffed as Duke of Wenxi County, he died in 682 at the age of sixty-four and received the posthumous title "Xian."
- Courtesy Name
- Shouyue (守约)
- Dynasty / Era
- Tang Dynasty
- Native Place
- Wenxi County, Jiangzhou (modern Wenxi County, Yuncheng, Shanxi)
- Life Dates
- 619 (2nd year of Wude of Tang) – 682 (1st year of Yongchun of Tang)
- Posthumous Title
- Duke Xian (Duke Xian of Wenxi County)
- Major Offices
- Magistrate of Chang'an County, Chief Clerk of the Xizhou Area Command, Protector-General of Anxi, Vice Minister of Personnel, Commander of the Left Second Army of Taozhou Circuit, Grand Commander-in-Chief of the Dingxiang Expeditionary Army, Minister of Rites and Acting General-in-Chief of the Right Guard, Grand Commander-in-Chief of the Jinya Expeditionary Army
- Noble Title
- Duke of Wenxi County (posthumously promoted to Commander-in-Chief of Youzhou, Grand Commander-in-Chief of Yangzhou, and Grand Commandant)
- Historical Role
- Tang military strategist, statesman, calligrapher, and exemplar of the scholar-general
LIFE TIMELINE
Passed the Classics examination, became Granary Section Adjutant of the Left Garrison Guard, and received Su Dingfang's military teachings.
Secretly discussed opposing Wu Zetian's elevation as Empress with Zhangsun Wuji and Chu Suiliang; betrayed by Yuan Gongyu and demoted to Chief Clerk of the Xizhou Area Command.
Promoted to Protector-General of Anxi, winning the allegiance of the Western Regions states through benevolent governance.
Served as Vice Minister of Personnel alongside Li Jingxuan and Ma Zai, establishing the Long Name Roster and appointment regulations.
Appointed Commander of the Left Second Army of Taozhou Circuit and Right Army of Qinzhou to counter Tibetan incursions.
Escorted the Persian prince Narsieh westward, feigned an autumn hunt with 10,000 horsemen, and captured Western Turkic rebel Ashina Duzhi and Li Zhefu; appointed Minister of Rites and Acting General-in-Chief of the Right Guard.
Commanded 300,000 troops as Grand Commander-in-Chief of the Dingxiang Expeditionary Army, ambushing Eastern Turkic raiders with 300 decoy grain wagons and routing the rebels at Black Mountain.
Used counter-espionage at Xingkou in Daizhou to compel Ashina Funian to bind Ashide Wenfu and surrender; retired in indignation after Chancellor Pei Yan had the surrendered leaders executed.
Appointed Grand Commander-in-Chief of the Jinya Expeditionary Army against Ashina Chebo, but died of illness in Chang'an on the twenty-eighth day of the fourth month at age sixty-four.
Relationship graph
BIOGRAPHY
Biography
Scion of a Martial House and Disciple of Su Dingfang
Pei Xingjian belonged to the Middle Branch of the distinguished Hedong Pei clan of Wenxi County, Jiangzhou (modern Wenxi County, Yuncheng, Shanxi). His great-grandfather Pei Bofeng had served as General-in-Chief of Agile Cavalry under the Northern Zhou, and his grandfather Pei Dinggao as Grand Administrator of Fengyi. His father Pei Renji, Grand Master of Splendid Happiness of the Left under the Sui, was killed in Luoyang by Wang Shichong while plotting to defect to the Tang and was posthumously honored by Emperor Gaozu as Commander-in-Chief of Yuanzhou with the title "Zhong," while his elder brother Pei Xingyan was famed as apeerless warrior at the end of the Sui.
Entering the Institute for the Advancement of Literature in his youth by hereditary privilege, Pei Xingjian passed the Classics (Mingjing) examination during the Zhenguan era of Emperor Taizong and was appointed Granary Section Adjutant of the Left Garrison Guard. At that time, the celebrated general Su Dingfang recognized Pei Xingjian's extraordinary composure and strategic aptitude, telling him: "In all my life, I have found no one in the world worthy of receiving my military methods—until today, in you!" Su Dingfang thereupon imparted all his tactical secrets and operational methods to Pei Xingjian.
Opposition to Wu Zetian and Civil Service Reforms
During the Yonghui era of Emperor Gaozong, Pei Xingjian rose to Magistrate of the capital county of Chang'an. In the sixth year of Yonghui (655), when Emperor Gaozong moved to depose Empress Wang and install Consort Wu Zetian as Empress, Pei Xingjian warned that disaster for the state would begin from this act and secretly discussed counter-measures with the senior regents Zhangsun Wuji and Chu Suiliang. When Yuan Gongyu of the Court of Judicial Review leaked their conversation to Consort Wu's mother Lady Yang, Pei Xingjian was banished to the frontier as Chief Clerk of the Xizhou Area Command (modern Turpan, Xinjiang). Promoted in the second year of Linde (665) to Protector-General of Anxi, he governed with integrity and won the voluntary submission of numerous states across the Western Regions.
Recalled to the central court as Vice Director of the Ministry of Rites and then promoted to Vice Minister of Personnel around 669, Pei Xingjian oversaw civil service appointments for more than ten years alongside Li Jingxuan and Ma Zai, earning renown as "Pei and Ma." To eliminate confusion and corruption in official appointments, Pei Xingjian created the "Long Name Roster" (Changming Bang) and standardized registration procedures (quanzhu), while codifying the ranking of prefectures and counties and the seniority scales for local officials—institutions that remained foundational throughout the Tang dynasty. In 676, when Tibetan forces raided the northwestern frontier, he served as Commander of the Left Second Army of Taozhou Circuit and Right Army of Qinzhou under Prince of Zhou Li Xian.
Escorting the Persian Prince and Capturing Ashina Duzhi
In the first year of Tiaolu (679), the Western Turkic Ten-Tribe Qaghan Ashina Duzhi and his lieutenant Li Zhefu incited the tribes of the Western Regions to rebel against the Tang in alliance with the Tibetan Empire, threatening the Four Garrisons of Anxi. When the court proposed launching a costly military expedition, Pei Xingjian memorialized: "The Tibetans are currently fierce, Li Jingxuan has just suffered defeat, and Liu Shenli has lost his life—how can we stir up another war in the west? Now the Persian king Peroz III has died, and his son Narsieh is a hostage in Chang'an. If we send an envoy to escort Narsieh home to succeed to his throne, our route will pass right by the two rebel chiefs; by acting opportunistically, we can capture them without bloodying a single blade!" Emperor Gaozong approved the plan and commissioned Pei Xingjian to escort Prince Narsieh and serve concurrently as Pacification Commissioner to the Arab Empire.
While crossing the scorching Moheyan Desert (Gobi Desert south of Hami), a violent sandstorm plunged day into darkness, the guides lost their way, and the troops were parched and exhausted. Pei Xingjian calmly ordered the army to pitch camp, perform sacrifices, and announced: "Water springs are not far off!" Soon the wind subsided and the clouds cleared; marching a few hundred paces ahead, the soldiers discovered a lush oasis with abundant water and grass, marveling that Pei Xingjian was like the Western Han general Li Guangli.
Upon reaching Xizhou, Pei Xingjian recruited 1,000 local horsemen and publicly announced that because of the summer heat, his party would remain in Xizhou until autumn before proceeding west. Learning of this through his scouts, Ashina Duzhi neglected defensive preparations. Pei Xingjian then summoned the chieftains of the Four Garrisons (Kucha, Khotan, Karasahr, and Suyab) for a grand "autumn hunt," gathering 10,000 eager young riders.
Secretly organizing the hunting party into military formations, Pei Xingjian marched west at double speed. When he was barely ten li from Ashina Duzhi's camp, he sent Duzhi's close acquaintances ahead to inquire after his health as if on a leisurely excursion, followed immediately by an urgent summons. Caught completely off guard, Ashina Duzhi came out with 500 followers to greet the envoy and was seized on the spot. Using Duzhi's tally-arrow to summon and detain the remaining tribal chieftains at Suyab, Pei Xingjian sent light cavalry toward Li Zhefu and released a captured messenger to inform Zhefu of Duzhi's capture, prompting Li Zhefu to surrender immediately. When Pei Xingjian brought both rebel leaders back to Chang'an in chains while officers erected a commemorative stele at Suyab, Emperor Gaozong hosted a banquet in his honor, praising him as "complete in both civil and military arts" and appointing him simultaneously Minister of Rites and Acting General-in-Chief of the Right Guard.
Campaign at Black Mountain and Counter-Espionage at Xingkou
In the tenth month of 679, the Eastern Turkic chieftains Ashide Wenfu and Ashina Fengzhi rebelled under the Chanyu Protectorate, proclaiming Ashina Nishufu as qaghan, winning the support of twenty-four prefectures with several hundred thousand men, and routing Xiao Siye. In the eleventh month, Emperor Gaozong appointed Pei Xingjian Grand Commander-in-Chief of the Dingxiang Expeditionary Army at the head of over 300,000 troops, with flags stretching a thousand li.
Because Turkic cavalry had previously starved Xiao Siye's army by raiding its grain trains, Pei Xingjian prepared 300 decoy grain wagons, hiding five elite soldiers armed with horse-cleaving modao blades and strong crossbows inside each wagon, pulled by frail soldiers while elite cavalry shadowed them from behind. When Turkic raiders seized the wagons and drove them to a pasture to unsaddle their horses and unload the grain, the 1,500 hidden warriors leaped out wielding their long blades while the trailing cavalry closed in, slaughtering the raiders almost to a man; thereafter no Turkic detachment dared approach a Tang supply wagon.
When the main army encamped north of the Chanyu Protectorate and had already dug its perimeter trenches at dusk, Pei Xingjian suddenly ordered the entire camp moved to high ground despite his officers' protests. That night, a torrential storm flooded the original campsite to a depth of over ten feet. When his astonished officers asked how he had known, Pei Xingjian replied: "From now on, simply obey my orders without asking how I know!" Advancing to Black Mountain (northwest of modern Baotou, Inner Mongolia), Pei Xingjian routed the Turkic host in successive battles; Ashina Nishufu was slain by his own men, and Ashina Fengzhi was captured alive.
In 680, when Ashina Funian proclaimed himself qaghan and joined forces with Ashide Wenfu, Pei Xingjian encamped at Xingkou in Daizhou and used counter-espionage to sow mutual suspicion between the two leaders, promising to spare Funian's life if he handed over Wenfu. Terrified, Ashina Funian secretly offered submission and bound Ashide Wenfu. When clouds of dust approached from the north and scouts panicked, Pei Xingjian calmly declared: "This is Funian bringing Wenfu in chains to surrender—yet receiving a surrender is like receiving an enemy!" He arrayed his troops in full battle order and accepted their surrender, pacifying the Eastern Turkic remnants. However, jealous of Pei Xingjian's triumph, Chancellor Pei Yan argued at court that Funian had surrendered only out of exhaustion and persuaded Emperor Gaozong to execute both Funian and Wenfu in the Chang'an marketplace. Deeply indignant that the court had broken his word of honor—warning that executing surrendered leaders would deter any future submissions—Pei Xingjian, enfeoffed as Duke of Wenxi County, pleaded illness and refused to attend court.
Judging Talent, Generosity, and Scholarship
In the fourth month of the first year of Yongchun (682), when the Western Turkic chief Ashina Chebo rebelled, Pei Xingjian was appointed Grand Commander-in-Chief of the Jinya Expeditionary Army, but fell ill before departing and died at his residence in Yanshou Ward, Chang'an, on the twenty-eighth day of the fourth month at the age of sixty-four. Emperor Gaozong posthumously named him Commander-in-Chief of Youzhou with the posthumous title "Xian" and assigned a sixth-rank capital official to manage his household until his young son Pei Guangting came of age (he was later posthumously promoted to Grand Commander-in-Chief of Yangzhou under Emperor Zhongzong and Grand Commandant under Emperor Xuanzong).
Renowned for his magnanimity, when a clerk accidentally broke a prized saddle given by the emperor, or when an officer tripped and shattered a priceless two-foot agate platter captured from Ashina Duzhi, Pei Xingjian smiled and forgave them without a trace of anger, and he distributed thousands of gold and silver vessels and livestock awarded by the throne among his relatives and subordinates within days.
His discernment of character was legendary. When Li Jingxuan introduced the "Four Paragons of the Early Tang" (Wang Bo, Yang Jiong, Lu Zhaolin, and Luo Binwang), Pei Xingjian remarked: "Whether a scholar can go far depends first on his moral capacity and judgment, and only secondarily on his literary skill. Although Wang Bo and the others possess talent, they are restless and ostentatious—not men who will enjoy noble rank and stipends. Yang Jiong is somewhat more composed and may reach the post of county magistrate, but the rest will hardly die a natural death." Conversely, he accurately predicted that Wang Ju and Su Weidao would rise to direct civil selections and become chancellors, while the junior officers he promoted in his armies—such as Cheng Wuting, Zhang Qianxu, Wang Fangyi, Li Duozuo, and Heichi Changzhi—nearly all became celebrated generals of the era. A master of cursive and clerical calligraphy who placed himself alongside Yu Shinan, he authored a twenty-scroll literary collection, the ten-scroll Register of Selections (Xuanpu), works on cursive script, and the Forty-Six Precepts (Sishiliu Jue) on camp layout, formations, and judging officers.
Relationships
- Father: Pei Renji, courtesy name Deben, Grand Master of Splendid Happiness of the Left under the Sui; killed while plotting to join the Tang and posthumously honored as Commander-in-Chief of Yuanzhou.
- Elder Brother: Pei Xingyan, renowned warrior of the late Sui and early Tang transition.
- Mentor: Su Dingfang, legendary early Tang general; taught Pei Xingjian his military methods during the Zhenguan era.
- Colleague: Ma Zai, Vice Minister of Personnel; managed civil service selections alongside Pei Xingjian for over a decade, known jointly as "Pei and Ma."
- Rival: Pei Yan, courtesy name Zilong, Tang chancellor; out of jealousy over Pei Xingjian's achievements, engineered the execution of the surrendered qaghan Ashina Funian in 680.
- Wife: Lady Kudi (Lady of Huayang), second wife of Pei Xingjian; summoned into the palace by Empress Wu Zetian as Palace Director for her literary talent and virtue.
- Son: Pei Guangting, courtesy name Liancheng, son of Pei Xingjian and Lady Kudi; served as Chancellor and Minister of Personnel under Emperor Xuanzong.
Historical Evaluations
- Emperor Gaozong of Tang praised him in an imperial banquet edict: "Leading an isolated force ten thousand li deep into foreign territory, Xingjian captured the rebel leaders without bloodying a blade—truly he combines both civil and military genius!"
- Liu Xu et al., in Old Book of Tang ("Biography of Pei Xingjian"), commended him: "Liu Rengui and Pei Xingjian equaled the worthies of antiquity in literary refinement and strategic mastery; governing armies and pacifying frontiers with deep resourcefulness, they were champions among scholar-generals."
- Du Mu, in his Preface to the Commentary on Sunzi, ranked Pei Xingjian alongside Li Jing, Li Ji, and Guo Yuanzhen as the four greatest strategists of the Tang dynasty whose plans were "settled within the court before triumphing on the frontier."
Related Entries
- Pei Renji
- Su Dingfang
- Pei Guangting
- Ashina Duzhi
- Ashina Funian
- Four Paragons of the Early Tang
FIGURES ASSOCIATED WITH THIS DYNASTY
Bibliography
- Liu Xu et al., Old Book of Tang (Jiu Tangshu), Scroll 84, "Biography of Pei Xingjian," Zhonghua Book Company punctuated edition.
- Ouyang Xiu and Song Qi, New Book of Tang (Xin Tangshu), Scroll 108, "Biography of Pei Xingjian," Zhonghua Book Company punctuated edition.
- Zhang Shuo, "Spirit Way Stele for Duke Pei, Posthumously Grand Commandant" (Complete Tang Prose, Scroll 228), Zhonghua Book Company edition.
- Sima Guang, Comprehensive Mirror in Aid of Governance (Zizhi Tongjian), "Annals of Tang," Zhonghua Book Company punctuated edition.