Chinese emperors family tree (early)
Emperor Xian, the last emperor of the Han dynasty, was a descendant of the first emperor Liu Bang. Lasting for over 400 years (the first to last for more than a century), the Han Dynasty is regarded as one of the golden ages of Chinese history. The Han Dynasty was interrupted by the reign of the usurper Wang Mang, who declared the Xin dynasty (9–23 AD); on this basis, the Han Dynasty is generally divided into the Western Han (206 BC – 9 AD and 23–25 AD) and the Eastern Han (25–220 AD). The rulers of the Shu Han, one of the three successor states to the Han Dynasty during the Three Kingdoms period, were descended from the Han imperial family, and considered themselves a continuation of the Han Dynasty; they are included below.
Han dynasty
The Xiongnu, a nomadic steppe confederation, defeated the Han in 200 BC and forced the Han to submit as a "de facto" inferior and vassal partner, but continued their military raids on the Han borders. Emperor Wu launched several military campaigns against them. The ultimate Han victory in these wars eventually forced the Xiongnu to accept vassal status as Han tributaries. These campaigns expanded Han sovereignty into the Tarim Basin of Central Asia, divided the Xiongnu into two separate confederations, and helped establish the vast trade network known as the Silk Road, which reached as far as the Mediterranean world. The territories north of Han's borders were quickly overrun by the nomadic Xianbei confederation. Emperor Wu also launched successful military expeditions in the south, annexing Nanyue in 111 BC and Dian in 109 BC, and in the Korean Peninsula where the Xuantu and Lelang Commanderies were established in 108 BC. After 92 AD, the palace eunuchs increasingly involved themselves in court politics, engaging in violent power struggles between the various consort clans of the empresses and empresses dowager, causing the Han's ultimate downfall. Imperial authority was also seriously challenged by large Daoist religious societies which instigated the Yellow Turban Rebellion and the Five Pecks of Rice Rebellion. Following the death of Emperor Ling (r. 168–189 AD), the palace eunuchs suffered wholesale massacre by military officers, allowing members of the aristocracy and military governors to become warlords and divide the empire. When Cao Pi, King of Wei, usurped the throne from Emperor Xian, the Han dynasty ceased to exist.