Emperor Xian of Han
Cao Cao died on 15 March 220. His son and successor, Cao Pi, soon forced Emperor Xian to abdicate the throne in favour of himself, ending the Han dynasty. Cao Pi established a new state known as Cao Wei (sometimes known inaccurately as the Kingdom of Wei), and he granted Emperor Xian a noble title – Duke of Shanyang (山陽公). The former Emperor Xian died in 234 and was buried with honours befitting an emperor, using Han ceremonies, and the then emperor of Wei, Cao Rui, was one of the mourners. As Emperor Xian's crown prince was already dead, his grandson Liu Kang (劉康) inherited his dukedom, which lasted for 75 more years and two more dukes, Liu Jin (劉瑾) and Liu Qiu (劉秋), until the line was exterminated by invading Xiongnu tribes in about 309, during the Jin dynasty. This practice of an emperor conferring hereditary nobility on his predecessor, from whom he usurped the throne, was known as "er wang san ke" (二王三恪).
Han dynasty
The Han dynasty (; ) was the second imperial dynasty of China (206 BC–220 AD), preceded by the Qin dynasty (221–206 BC) and succeeded by the Three Kingdoms period (220–280 AD). Spanning over four centuries, the Han period is considered a golden age in Chinese history. To this day, China's majority ethnic group refers to themselves as the "Han Chinese" and the Chinese script is referred to as "Han characters". It was founded by the rebel leader Liu Bang, known posthumously as Emperor Gaozu of Han, and briefly interrupted by the Xin dynasty (9–23 AD) of the former regent Wang Mang. This interregnum separates the Han dynasty into two periods: the Western Han or Former Han (206 BC – 9 AD) and the Eastern Han or Later Han (25–220 AD).