Origins Late in the
Xiantong era (860–874) of
Emperor Yizong, there were severe droughts and floods that caused terrible famine. Despite this, the Tang imperial government largely ignored the victims of these natural disasters—instead of granting tax exemptions for affected areas, taxes were increased to fund Emperor Yizong's luxurious lifestyle and military campaigns. As a result, survivors grouped themselves into bands and rose to resist Tang rule. In 874,
Wang Xianzhi (who, like
Huang Chao, was a salt privateer) and Shang Junzhang () raised an army at Changyuan (長垣, in modern
Xinxiang,
Henan). By 875, he had repeatedly defeated Xue Chong (), the military governor of Tianping Circuit (天平, headquartered in modern
Tai'an,
Shandong), in battle. Huang had by this point also raised several thousand men, and joined forces with Wang's now veteran troops. By this time Emperor Yizong had died and his young son
Emperor Xizong ruled. Late in 876, Wang was sought to parlay his victories into a peaceful submission to Tang authority, in which he would be generously treated by the throne. This was being mediated by Tang official Wang Liao (), a close relation to
chancellor Wang Duo, and Pei Wo () the prefect of Qi Prefecture (蘄州, in modern
Huanggang,
Hubei). Under Wang Duo's insistence, Emperor Xizong commissioned Wang Xianzhi as an officer of the imperial Left Shence Army () and delivered the commission to Qi Prefecture. However, Huang, who did not receive a commission as part of this arrangement, angrily stated: • In the summer of 877, he joined forces with Shang Junzhang's brother
Shang Rang at
Mount Chaya (查牙山, in modern
Zhumadian, Henan). He and Wang Xianzhi then briefly joined forces again and put the Tang general Song Wei () under siege at Song Prefecture (宋州, in modern
Shangqiu, Henan). However, the Tang general Zhang Zimian () then arrived and defeated them, and they lifted the siege on Song Prefecture and scattered. had previously sacked Guangzhou; the port was subsequently closed for fifty years. As subsequent relations were rather strained, their presence
came to an end during Huang Chao's revenge. Arab sources claim that the foreign Arab and Persian Muslim, Zoroastrian, Jewish, and Christian victims numbered tens of thousands. However, Chinese sources do not mention the event at all. Mulberry groves in south China were ruined by his army, leading to a decline in
silk exports along the
Maritime Silk Road.
Return to the North However, as Huang Chao's army was in the Lingnan region, his soldiers were stricken by illnesses, and some 3–40% died. His key subordinates suggested that he march back north, and he agreed. He thus made rafts at Gui Prefecture (桂州, in modern
Guilin,
Guangxi) and took them down the
Xiang River, reaching Hunan's capital
Tan Prefecture (in modern
Changsha, Hunan) in winter 879. He attacked Tan Prefecture and captured it in a day, and Li Xi fled to Lang Prefecture (朗州, in modern
Changde, Hunan). Shang Rang then attacked Jingnan's capital
Jiangling Municipality, where Wang Duo was. Wang panicked and fled as well, leaving the city to be defended by his officer
Liu Hanhong, but as soon as Wang left the city, Liu mutinied, pillaged the city, and took his soldiers to become bandits. Huang then attacked Tong Pass. Qi and Zhang initially resisted his forces for more than a day, but thereafter, Qi's troops, hungry and tired, scattered and fled. Zhang's final attempts to defend Tong Pass were futile, and it fell. Meanwhile, Tian had recruited some new soldiers, who were also ill-trained but relatively well-equipped, and sent them to the front, but by the time they reached there, Tong Pass had already fallen, and the troops from Boye Army () and Fengxiang Circuit (鳳翔, headquartered in modern
Baoji,
Shaanxi), also sent to the front to try to aid Zhang, became angry at the good equipment (including warm clothes) that Tian's new soldiers had, and mutinied, instead serving as guides for Huang's forces. Emperor Xizong and Tian abandoned Chang'an and fled toward Xichuan Circuit on January 8, 881. Later that day, Huang's forward commander Chai Cun () entered Chang'an, and the Tang general
Zhang Zhifang welcomed Huang into the capital. Shang Rang issued a declaration proclaiming Huang's love for the people and urged the people to carry on their daily affairs, but despite Shang's assurance that the people's properties would be respected, Huang's soldiers were pillaging the capital repeatedly. Huang himself, briefly, lived at Tian's mansion, moving into the Tang palace several days later. He also ordered that Tang's imperial clan members be slaughtered. == As Emperor of Qi ==