Liu Yan (; died 23 AD[1] [2]), courtesy name Bosheng (Chinese: 伯升), was a Chinese general of one of the major uprisings against the Xin dynasty and its emperor, Wang Mang. Although he was militarily successful, he died early as a victim of political intrigue. His younger brother Liu Xiu, however, would eventually found the Eastern Han dynasty.
Liu Yan was the sixth generation descendant of Emperor Jing of the Western Han dynasty. He was the son of Liu Qin (Chinese: 劉欽), magistrate of Nandun county (Chinese: 南頓令). Liu Qin was the son of Liu Hui (Chinese: 劉回), vice governor in charge of military affairs for Julu Commandery (Chinese: 鉅鹿都尉). Liu Hui was the son of Liu Wai (Chinese: 劉外), governor of Yulin Commandery (Chinese: 鬱林太守). Liu Wai was the son of Liu Mai (Chinese: 劉買), known posthumously as Marquess Jie of Chongling (Chinese: 舂陵節侯). Liu Mai was the son of Liu Fa (Chinese: 劉發), known posthumously as Prince Ding of Changsha (Chinese: 長沙定王). The prince of Changsha was a brother of Emperor Wu, a Han emperor, and also a son of Emperor Jing Liu Qi.
Liu Qin was married to Fan Xiandu (樊娴都), a daughter of Fan Chong (Chinese: 樊重), and they had three sons: Liu Yan, Liu Zhong (Chinese: 劉仲), and Liu Xiu. Liu Qin died early, so the brothers were raised by their uncle Liu Liang (Chinese: 劉良). Liu Yan was ambitious, and ever since Wang Mang usurped the Han throne in 9 AD establishing the Xin dynasty, Liu Yan was constantly considering starting a rebellion to restore the Han dynasty. Liu Xiu, in contrast, was a careful man who was content to be a farmer.
In 22 AD, with rebellions breaking out across the empire against Wang Mang's rule, Liu Yan prepared his rebellion. He planned, along with his brothers, and Li Tong (Chinese: 李通) and his cousin Li Yi (Chinese: 李軼), to kidnap the governor for Nanyang Commandery (modern Nanyang, Henan) and call for the people of the commandery to join him. When the young men of Chongling were told about the planned rebellion, they hesitated in joining until they were told that Liu Xiu was also involved. However, the news of the planned rebellion leaked out, and Li Tong and Li Yi barely escaped with their lives (but their family was slaughtered). Liu Yan changed his plan and persuaded two branches of the Lülin, the Xinshi Force (Chinese: 新市兵) and Pinglin Force (Chinese: 平林兵) to join forces with him, and they had some military success. Encouraged, Liu Yan launched a frontal assault against Wancheng (Chinese: 宛城), the capital of Nanyang Commandery but suffered a major defeat. Liu Yan and Liu Xiu, along with their sister Liu Boji (Chinese: 劉伯姬) survived, but their brother Liu Zhong and sister Liu Yuan died in the battle. Liu Yan's allies, seeing his defeat, considered leaving him, but Liu Yan was able to persuade them, along with another branch of the Lülin, the Xiajiang Force (Chinese: 下江兵), to join him. In 23 AD, Liu Yan's forces had a major victory against the Xin dynasty forces, killing Zhen Fu (Chinese: 甄阜), the governor of Nanyang Commandery.
By this point, other rebel leaders were becoming jealous of Liu Yan's capabilities, particularly as many of their men admired Liu Yan and wanted him to become the new emperor of the restored Han dynasty. The other rebel leaders chose rebel leader, Liu Xuan, a third cousin of Liu Yan, who had taken the title General Gengshi (Chinese: 更始將軍) and who was considered a weak personality, and requested that he be made emperor. Liu Yan initially opposed this move and instead suggested that Liu Xuan carry the title "Prince of Han" first (echoing the founder of the Han dynasty, Emperor Gao). The other rebel leaders dismissed this suggestion, and in early 23 AD, Liu Xuan was proclaimed the Gengshi Emperor. Liu Yan became prime minister (大司徒, dasitu).
After Gengshi Emperor's forces decisively defeated Wang Mang's remaining army at the Battle of Kunyang (in which Liu Yan's brother Liu Xiu played a major part), Gengshi Emperor quickly became at least nominally acknowledged by most of the empire as the legitimate Han emperor. However, Gengshi Emperor remained fearful of Liu Yan's capabilities and keenly aware that many of Liu Yan's followers were angry that Liu Yan had not been made emperor. In particular, Liu Ji (Chinese: 劉稷), was very critical of Gengshi Emperor. In response, Gengshi Emperor arrested Liu Ji and wanted to execute him, but Liu Yan tried to intercede to stop the execution. Gengshi Emperor, encouraged by Li Yi (who had by that point turned against Liu Yan) and Zhu Wei (Chinese: 朱鮪), took this action by Liu Yan as an excuse to execute Liu Yan as well. Liu Xiu only survived because Gengshi Emperor then regretted having executed Liu Yan.
After Liu Yan's death, Liu Xiu looked after Liu Yan's sons Liu Zhang (Chinese: 劉章) and Liu Xing (Chinese: 劉興) and raised them. When Liu Xiu proclaimed himself emperor, founding the Eastern Han dynasty, in 25 AD, he took steps to honour Liu Yan's sons. In 26 AD, he created Liu Zhang Prince of Taiyuan and Liu Xing Prince of Lu (and made Liu Xing the heir to his other brother, Liu Zhong). In 39 AD, he posthumously honoured Liu Yan with the title Prince Wu ("martial prince") of Qi (as his son Prince Zhang had, by that point, been moved to the Principality of Qi).