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.
China
Following a widespread civil war during which the imperial library at Xianyang was burned, the Han dynasty emerged to rule China between 206  and  220, creating a cultural identity among its populace still remembered in the ethnonym of the Han Chinese. The Han expanded the empire's territory considerably, with military campaigns reaching Central Asia, Mongolia, South Korea, and Yunnan, and the recovery of Guangdong and northern Vietnam from Nanyue. Han involvement in Central Asia and Sogdia helped establish the land route of the Silk Road, replacing the earlier path over the Himalayas to India. Han China gradually became the largest economy of the ancient world. Despite the Han's initial decentralization and the official abandonment of the Qin philosophy of Legalism in favor of Confucianism, Qin's legalist institutions and policies continued to be employed by the Han government and its successors.