Emperor Ling of Han (156/157Liu Hong's biography in Book of the Later Han also indicated that he was 12 (by East Asian reckoning) when he became emperor. If this record is correct, his birth year should be 157. – 13 May 189According to Liu Hong's biography in Book of the Later Han, he died aged 34 (by East Asian reckoning) on the bingchen day of the 4th month of the 6th year of the Zhongping era of his reign. This corresponds to 13 May 189 on the proleptic Gregorian calendar. By calculation, his birth year should be 156. [(中平六年四月)丙辰,帝崩于南宫嘉德殿,年三十四] Houhanshu, vol. 08), personal name Liu Hong, was the 12th emperor of the Eastern Han dynasty. He was also the last Eastern Han emperor to exercise effective power during his reign. Born the son of a lesser marquis who descended directly from Emperor Zhang (the third Eastern Han emperor), Liu Hong was chosen to be emperor in February 168 around age 12 after the death of his predecessor, Emperor Huan, who had no son to succeed him. He reigned for about 21 years until his death in May 189.

Emperor Ling's reign saw another repetition of corrupt eunuchs dominating the eastern Han central government, as was the case during his predecessor's reign. Zhang Rang, the leader of the eunuch faction (十常侍), managed to dominate the political scene after defeating a faction led by Empress Dowager Dou's father, Dou Wu, and the Confucian scholar-official Chen Fan in October 168. After reaching adulthood, Emperor Ling was not interested in state affairs and preferred to indulge in women and a decadent lifestyle. At the same time, corrupt officials in the Han government levied heavy taxes on the peasants. He exacerbated the situation by introducing a practice of selling political offices for money; this practice severely damaged the Han civil service system and led to widespread corruption. Mounting grievances against the Han government led to the outbreak of the peasant-led Yellow Turban Rebellion in early 184.

Emperor Ling's reign left the Eastern Han dynasty weak and on the verge of collapse. After his death, the Han Empire disintegrated in chaos for the subsequent decades as various regional warlords fought for power and dominance. (See End of the Han dynasty.) The Han dynasty ended in late 220 when Emperor Ling's son, Emperor Xian, abdicated his throne – an event leading to the start of the Three Kingdoms period in China.

Family background and accession to the throne

Liu Hong was a hereditary marquis – the Marquis of Jiedu Village (). In the Han dynasty, a village marquis's marquisate usually comprised only one village or, in rarer cases, two or three villages. He was the third person in his family to hold this title; his father Liu Chang () and grandfather Liu Shu () were also formerly Marquis of Jiedu Village. His great-grandfather, Liu Kai (), Prince Xiao of Hejian (), was the sixth son of Emperor Zhang, the third emperor of the Eastern Han dynasty. His mother, Lady Dong, was Liu Chang's formal spouse.

When Emperor Huan died on 25 January 168According to Liu Zhi's biography in Book of the Later Han, he died on the dingchou day of the 12th month of the 1st year of the Yongkang era of his reign. This corresponds to 25 January 168 on the Julian calendar. [(永康元年十二月)丁丑,帝崩于德阳前殿。] Houhanshu, vol. 07 without a son to succeed him, his empress, Empress Dou, became empress dowager, and she examined the genealogy of the imperial clan to choose a candidate to be the next emperor. For reasons unknown, her assistant Liu Shu () recommended Liu Hong, the Marquis of Jiedu Village. After consulting with her father Dou Wu and the Confucian scholar-official Chen Fan,According to vol.56 of Zizhi Tongjian, on 30 January 168, Dou Wu was made General-in-Chief while Chen Fan was made Grand Tutor ([建宁元年]春,正月,壬午,以城门校尉窦武为大将军。前太尉陈蕃为太傅....). Empress Dowager Dou installed a 12-year-old Liu Hong on the throne on 17 February 168,According to Liu Hong's biography in Book of the Later Han, he ascended the throne aged 12 (by East Asian reckoning) on the gengzi day of the 1st month of the 1st year of the Jianning era of his reign. This corresponds to 17 Feb 168 on the Julian calendar. [(建宁元年春正月)庚子,即皇帝位,年十二] Houhanshu, vol. 08 and continued ruling on his behalf as regent. The newly enthroned Emperor Ling bestowed posthumous titles on his grandfather, father and grandmother, honouring them as emperors and an empress respectively. His mother, Lady Dong, did not become empress dowager and instead received the title of an Honoured Lady.

Early reign Dou Wu and Chen Fan, who became the most important officials in the central government (being the General-in-Chief and Grand Tutor respectively), sought to purge the eunuch faction. Later in 168, they even proposed to exterminate all the powerful eunuchs, a proposal that Empress Dowager Dou rejected. However, word of the plot was leaked, and the eunuchs, after kidnapping the empress dowager and taking the young emperor into custody (after persuading him that it was for his own protection) arrested and executed Chen Fan. Dou Wu resisted but was eventually defeated and forced to commit suicide. The Dou clan was slaughtered. The powerful eunuchs, led by Cao Jie () and Wang Fu (), became the most powerful individuals in the central government.

After the destruction of the Dou clan, in 169, Emperor Ling promoted his mother to the position of empress dowager, though he continued honouring Empress Dowager Dou, now under house arrest, as empress dowager as well. Members of the Dong clan began to enter government, but did not have substantial influence. Later that year, the eunuchs persuaded Emperor Ling that the "partisans" (i.e., Confucian officials and those who supported them) were plotting against him, and a large number of partisans were arrested and killed; the others had their civil liberties stripped completely, in an event historically known as the second Disaster of Partisan Prohibitions.

Empress Dowager Dou died in 172. Despite suggestions by eunuchs to have her only buried as an imperial consort and not be honoured as Emperor Huan's wife, Emperor Ling had her buried with full honours befitting an empress dowager in Emperor Huan's mausoleum. In the aftermaths of her death, a vandal wrote on the palace gate: "All that is under the heaven is in upheaval. Cao and Wang murdered the empress dowager. The key officials only know how to be officials and had nothing faithful to say."

The angry eunuchs ordered an investigation which led to over 1,000 arrests, but nothing conclusive was found. In that year, the eunuchs also falsely accused Emperor Huan's brother, Liu Kui (), the Prince of Bohai, of treason and forced him to commit suicide. The members of his entire household, including his wife, concubines, children, assistants and principality officials, were all rounded up and executed. As the Han government became more corrupt, the people received heavier tax burdens. As Emperor Ling grew older, he not only took no remedial action, but continued to tolerate the eunuchs' corruption for the most part. A major defeat of the Han army by the Xianbei tribes in 177 further drained the imperial treasury.

In 178, Emperor Ling's wife Empress Song, whom he made empress in 171 but did not favour, fell victim to the eunuchs' treachery. Her aunt, Lady Song, was Liu Kui's wife, so the eunuchs were worried that she would seek vengeance on them. Thus, by collaborating with other imperial consorts who wanted to replace the empress, the eunuchs falsely accused Empress Song of using witchcraft to curse Emperor Ling. The emperor believed them and deposed the empress, who was imprisoned and died in despair. Her father, Song Feng (), and the rest of her family were exterminated.

Middle reign In 178, Emperor Ling introduced the practice of selling political offices for money – a practice which severely damaged the Han civil service system (chajuzhi, Chinese: 察举制) and led to widespread corruption. The people who paid for these positions perpetuated corruption upon taking office. That was exactly what Emperor Ling had in mind: he allowed the officials to pay by instalments after taking office if they could not afford the initial amount.

In January 181, Emperor Ling instated Lady He as the new empress and appointed her brother, He Jin, as a key official in his government. (According to legends, she managed to enter Emperor Ling's imperial harem because her family bribed the eunuchs in charge of selecting women for the emperor.) She received the position of empress because she bore Emperor Ling a son, Liu Bian; the emperor had other sons but they died prematurely before Liu Bian's birth.

During these years, Emperor Ling became interested in building imperial gardens so he ordered the commandery and principality officials throughout the Han Empire to pay their tributes to him directly, so he could use the money to finance his construction projects. This, in turn, created pressures on the officials to resort to corrupt practices so they could extract a larger tribute from their jurisdictions for the emperor. In spite of all his flaws, Emperor Ling occasionally heeded good advice from his subjects but was not consistent in doing so. His subjects often found it frustrating to try to convince him on policy issues because he only listened to them when he wanted to.

The Yellow Turban Rebellion

Sometime before 183, a major Taoist rebel movement had started in Ji Province – the Taiping Sect (), led by Zhang Jiao, who claimed he had magical powers to heal the sick. By 183, his teachings and followers had spread to eight of the empire's thirteen provinces – Ji, Qing, Xu, You, Jing, Yang, Yan, and Yu. Several key imperial officials became concerned about Zhang Jiao's hold over his followers, and suggested that the Taiping Sect be disbanded. Emperor Ling did not listen to them.

Zhang Jiao had in fact planned a rebellion. He commissioned 36 military commanders, set up a shadow government, and wrote a declaration: "The Azure sky has perished; behold, the Yellow sky will soon rise. When the year is jiazi, there will be prosperity under Heaven!" (Under the traditional Chinese sexagenary cycle calendar method, 184 would be the first year of the cycle, known as jiazi.) Zhang Jiao had his supporters write jiazi in large characters with white talc everywhere they could – including on the doors of government offices in the imperial capital and other cities. One of Zhang Jiao's followers, Ma Yuanyi (), plotted with two eunuchs to start an uprising inside the palace.

Early in 184, this plot was discovered, and Ma Yuanyi was immediately arrested and executed. Emperor Ling ordered that Taiping Sect members be arrested and executed, and Zhang Jiao immediately declared a rebellion. Every member of the rebellion wore a yellow turban or headscarf as their symbol – and therefore the rebellion became known for it. Within a month, Zhang Jiao controlled large areas of territory. Under suggestion by the eunuch Lü Qiang (), who was sympathetic to the partisans, Emperor Ling pardoned the partisans to ward off the possibility they would join the Yellow Turbans. (Lü Qiang himself became a victim, however, when the other eunuchs, in retaliation, falsely accused him of wanting to depose the emperor, and he committed suicide later that year.)

Emperor Ling sent out a number of military commanders against the Yellow Turbans, and in these campaigns several of them distinguished themselves –