Shu Han (22 1-263), namely Han Ji (the continuation of the Western Han Dynasty and the Eastern Han Dynasty), was founded by Liu Bei, a descendant of the Han royal family, with the country name "Han". Because the regime established by Liu Bei was established in Shu, it is often called "Shu". Calling his country by its land is actually a derogatory term for Liu Bei's regime, but later generations gradually got used to it. In order to recognize the Han regime established by Liu Bei, it was called Shu Han. At the end of the Eastern Han Dynasty, the struggle between consorts and eunuchs continued, which made state affairs increasingly corrupt, and then the Yellow Scarf Uprising broke out. Liu Bei entered his official career because he made great achievements in suppressing the peasant uprising. But not long after, He Jin and Dong Zhuo were defeated, and the world situation gradually turned into a warlord melee. Liu Bei ran around in the melee. After Battle of Red Cliffs recovered all parts of Jingzhou, he advanced to capture Hanzhong and finally established the Shu-Han regime. It began with Emperor Liu Bei of Zhaolie, and ended with Emperor Huai of Han Dynasty (Liu Yuan pursued history) Liu Chan. The two emperors lived for forty-two years.