Zhang Xianzhong (born 1606, Dingbian, Shaanxi province, China—died Jan. 2, 1647, Xichong, Sichuan province) was a Chinese rebel leader at the close of the Ming dynasty (1368–1644). Following a disastrous famine in the northern province of Shaanxi in 1628, Zhang became the leader of a gang of freebooters who used hit-and-run tactics to plunder widely throughout North China. Although his forces were bought off several times and were defeated by government troops, they retreated into the hills, regrouped, and continued their raids.
In 1644, the year of the fall of the Ming dynasty, Zhang advanced once again into Sichuan province in west-central China with about 100,000 men and enthroned himself as the Daxiguo Wang (“King of the Great Western Kingdom”). He coined money and set up an examination system to recruit talented men. Despite these attempts to establish a civilian government, he was chiefly concerned with military control, which he pursued with utter ruthlessness. The official chronicle of the Ming dynasty claimed that some 600 million people were put to death under his rule—clearly a gross exaggeration but indicative of the great suffering he caused.
Zhang met his end soon after the Manchu tribes of Manchuria established the Qing dynasty (1644–1911/12) in North China. In late 1646 and early 1647, when Qing forces advanced into southwestern China, they attacked and killed him and defeated his troops.