query: When was Liu Bei born?
passage: Liu Bei
Liu Bei (pronunciation; Mandarin pronunciation:[ljoupei]; 161 – 10 June 223),[1] courtesy name Xuande, was a warlord in the late Eastern Han dynasty who founded the state of Shu Han in the Three Kingdoms period and became its first ruler. Despite early failings compared to his rivals and lacking both the material resources and social status they commanded, he gathered support among disheartened Han loyalists who opposed Cao Cao, the warlord who controlled the Han central government and the figurehead Emperor Xian, and led a popular movement to restore the Han dynasty through this support. Liu Bei overcame his many defeats to carve out his own realm, which at its peak spanned present-day Sichuan, Chongqing, Guizhou, Hunan, and parts of Hubei and Gansu.
passage: Liu Shan
After Liu Bei declared himself emperor of Shu Han in 221, Liu Shan was formally made the crown prince. In the following year, Liu Bei left the capital Chengdu on a campaign against Sun Quan, who had sent his general Lü Meng to invade and seize Jing Province from Liu Bei in 219. Liu Bei was defeated at the Battle of Xiaoting and, having retreated to the city of Baidicheng, eventually died in 223. Before his death, Liu Bei entrusted the young Liu Shan to the care of his chancellor Zhuge Liang. Liu Bei even told Zhuge Liang to take the throne if Liu Shan proved to be incapable.