Life
Northwestern Wealth and the Jincheng Mutiny
Xue Ju belonged to the eminent Xue lineage of Fenyin in Hedong. His father, Xue Wang, had relocated the family to the northwestern trade hub of Lanzhou to escape blood feuds. In the borderlands, the Xue family engaged extensively in commerce and livestock breeding, accumulating immense personal wealth.
Xue Ju possessed an imposing physique, exceptional physical strength, and consummate skill in mounted archery. Generous, chivalric, and charismatic, he actively forged alliances with local wanderers, gentry elites, and Qiang and Di tribal chieftains, establishing widespread authority throughout the Longyou frontier. During the Daye era of Emperor Yang of Sui, Xue Ju entered civil-military service as a Garrison Commandant (Xiaowei) in the Jincheng commandery headquarters.
In the spring of the thirteenth year of Daye (617 CE), while Emperor Yang resided in Jiangdu and the central empire splintered into anarchy, Longxi was afflicted by severe drought and famine. Destitute peasants formed roving bandit bands, throwing the commanderies into turmoil. Hao Yuan, the magistrate of Jincheng, received authorization to recruit several thousand local militiamen to protect the city. Recognizing Xue Ju's influence among the populace, Hao appointed him to drill and command the levies.
In the fourth lunar month, after arms and armor had been distributed, Hao Yuan hosted a lavish banquet in Jincheng to reward the officers. Amid the festivities, Xue Ju, his ferocious eldest son Xue Rengao, and their armed followers suddenly drew their weapons, seized Hao Yuan, and falsely announced that the court had ordered the arrest of treasonous officials.
Xue Ju ordered the city gates barred, imprisoned corrupt local bureaucrats, seized the treasury, and threw open the public granaries to distribute grain to starving citizens. He raised the banner of righteous revolt, proclaiming himself Hegemon King of Western Qin, establishing the reign era Qinxing, and appointing Xue Rengao as Prince of Qi and supreme expeditionary marshal.
Sweeping Longxi and Imperial Proclamation in Lanzhou
Following his uprising, Xue Ju rallied thousands of displaced peasants, bandits, and tribal cavalry under the slogan of eradicating tyranny and relieving famine. He raided imperial horse-breeding pastures, capturing thousands of prime warhorses to form an elite cavalry strike force.
Sui general Huangfu Wan marched ten thousand veteran troops from Baohan (modern Linxia, Gansu) to crush the rebellion. Xue Ju personally selected two thousand elite horsemen and launched a rapid counter-offensive, intercepting Huangfu Wan at Chi'an. At the start of the battle, a sudden tempest arose with swirling dust blowing into the faces of Xue's men, prompting Huangfu Wan to hold his ranks. However, the gale abruptly shifted, blowing violent sand straight into the Sui formations as darkness enveloped the battlefield.
Encased in heavy iron lamellar armor and brandishing a long lance, Xue Ju charged into the disordered Sui lines with Xue Rengao following closely behind. The Sui formations shattered in panic, allowing Xue Ju to capture Baohan. Shortly thereafter, powerful Longdong tribal chieftain Zong Luohou surrendered with twenty thousand troops, earning the title Prince of Yixing.
Xue Ju then swept westward, conquering Shan, Kuo, and He provinces. Within ten days, all of Longxi submitted to his authority, and his armed forces expanded to one hundred and thirty thousand men.
In the seventh lunar month of the thirteenth year of Daye (617 CE), Xue Ju held a formal altar sacrifice in the southern suburbs of Lanzhou, ascending the throne as Emperor of Western Qin. He honored his ancestors, invested his wife Lady Ju as Empress, and named Xue Rengao Crown Prince, staging a grand military review of tens of thousands of troops to celebrate the inauguration of his dynasty.
Advancing to Qinzhou and Contesting Guanzhong
Having consolidated Longxi, Xue Ju recognized that Lanzhou was too remote from the political core of China. To contest the empire, he needed to shift his strategic center east toward the throat of the Guanzhong basin.
In late 617 CE, Xue Ju dispatched Xue Rengao to assault Fufeng to breach the western gates of the capital region, but his vanguard was repelled by resolute defenses under Sui loyalists Gu Yi and Li Hongjie.
In the twelfth lunar month, Li Yuan captured Chang'an and enthroned puppet emperor Yang You. Viewing Li Yuan as his paramount imperial rival, Xue Ju resolved to shift his political capital eastward.
In early 618 CE, Xue Ju transferred the capital of Western Qin from Lanzhou to Qinzhou (modern Tianshui, Gansu), repairing fortifications, manufacturing siege weapons, and allying with regional factions across southern Shaanxi to prepare for an all-out assault on the Tang dynasty.
The Decisive Victory at Qianshuiyuan
In the fifth lunar month of the first year of Wude (618 CE), Li Yuan deposed the Sui emperor to establish the Tang dynasty. In June, Xue Ju mobilized the entire strike army of Western Qin and surged eastward, capturing Jingzhou and Binzhou before occupying Gaozhi (modern north of Changwu, Shaanxi), placing his cavalry vanguard within striking distance of Chang'an.
Alarmed by the threat, Li Yuan appointed his second son, Prince of Qin Li Shimin, as Supreme Marshal of the Western Campaign, deploying eight division generals including Liu Wenjing, Yin Kaishan, and Liu Hongji with tens of thousands of infantry and cavalry to halt the invasion.
Upon arriving at Gaozhi, Li Shimin recognized that Xue Ju's nomadic cavalry possessed ferocious combat power but carried meager provisions. He formulated a strategic defensive policy: fortify positions, refuse battle, and exhaust enemy supplies before counterattacking.
However, during this critical juncture, Li Shimin contracted severe malaria and was confined to his sickbed. Entrusting camp operations to chief of staff Liu Wenjing and adjutant Yin Kaishan, Li Shimin issued explicit orders: "Xue Ju has marched deep into our territory with dwindling food supplies, desperate for a quick engagement. Despite our superior numbers, you must remain behind our ramparts and never offer battle until I recover!"
Arrogant and eager for martial glory, Yin Kaishan remarked to Liu Wenjing: "The Prince of Qin is incapacitated. If we hide behind our walls, border populations will despise us for cowardice. Let us display our might to demoralize the enemy!" Overriding imperial commands, they marched the bulk of the Tang army outside the fortress, forming a battle line with their backs against the river at Qianshuiyuan.
Scouting reports alerted Xue Ju to the Tang army's exposed, water-backed alignment. Delighted by their blunder, he ordered veteran general Zong Luohou to launch a feigned cavalry assault with light outriders, while Xue Ju personally concealed several divisions of heavy cavalry along the Tang army's flanks.
On the ninth day of the seventh lunar month, Zong Luohou feigned defeat and retreated, prompting Yin Kaishan to commit his entire army into reckless pursuit. Without warning, Xue Ju's main iron cavalry divisions charged out from the southwest, executing a thunderous flank and rear assault.
Caught in the open, the Tang battle lines disintegrated under the shock. Over half of the imperial army was wiped out, leaving corpses strewn across the plains. Division commanders Murong Luohou and Li Anyuan were killed, and senior general Liu Hongji was captured after fighting to exhaustion. Li Shimin was forced to gather surviving remnants and withdraw posthaste to Chang'an. This engagement marked the most devastating military defeat suffered by Li Shimin throughout his military career.
Imperial Ambitions and Sudden Demise
The triumph at Qianshuiyuan obliterated Tang frontier defenses in eastern Gansu. Xue Ju captured all Tang supply trains and armaments, took thousands of prisoners, and pushed his forward perimeter to within hundreds of li from Chang'an.
Gaozhi was garrisoned, and an atmosphere of acute dread descended upon the newly established Tang court. Exultant, Xue Ju addressed his assembled ministers: "In antiquity, Han Gaozu conquered the empire from a handful of counties in Guanzhong. Today, I possess all of Longxi and have shattered the elite legions of the Tang; taking Chang'an is as easy as turning my palm!"
Xue Ju drafted a comprehensive three-pronged invasion plan and dispatched envoys to negotiate a joint offensive with Ashina Shibi Khagan of the Eastern Turkic Khaganate, preparing to assault Chang'an simultaneously from the north and west.
Yet at this momentous turning point, in the eighth lunar month of 618 CE, Xue Ju was struck down by a sudden, virulent illness in his military camp. High fever induced prolonged unconsciousness, and camp physicians were helpless against the rapid affliction. Overcome by terror and despair, Xue Ju died abruptly in his imperial travelling palace at Gaozhi.
Following his death, Crown Prince Xue Rengao assumed the throne, granting his father the posthumous title Emperor Wu. However, Xue Rengao was notoriously brutal and sadistic, alienating senior officers and troops. Only three months later, a fully recovered Li Shimin returned to the battlefield, annihilated Xue Rengao at the Second Battle of Qianshuiyuan, and completely erased Western Qin from history.