Huang Chao was born into a wealthy family of salt merchants in Shandong. Despite his family's wealth, he was frustrated by his repeated failures in the imperial civil service examinations, which led him to harbor deep resentment toward the Tang administration.
In 875 AD, following years of famine and government corruption, Huang Chao joined forces with another rebel leader, Wang Xianzhi. Together, they led an army of displaced peasants and salt smugglers, sacking cities across central and southern China.
Huang Chao's rebellion was exceptionally brutal, and his forces were known for their ruthlessness. In 880, he captured the secondary capital Luoyang and then the main capital Chang'an, forcing Emperor Xizong to flee to Sichuan. Huang Chao declared himself the emperor of a new 'Qi' dynasty.
However, his rule in Chang'an was short-lived. Internal divisions and the arrival of the Shatuo Turk chieftain Li Keyong led to his defeat. In 884, Huang Chao was either assassinated or committed suicide while fleeing. Although his rebellion was suppressed, the Tang Dynasty never recovered its authority, eventually leading to the era of the Five Dynasties and Ten Kingdoms.