<b>Early life</b>
Born in Zhuo Commandery (?, present day Zhuozhou, Hebei), Liu Bei was a descendant of Liu Sheng, a son of Emperor Jing. His grandfather Liu Xiong (??) and father Liu Hong (??) were both employed as local clerks.
Liu Bei grew up poor, having lost his father when he was still a child. To support themselves, he and his mother sold shoes and straw-woven mats. At age fourteen, Liu Bei, sponsored by a more well-off relative who saw his potentials, went to study under Lu Zhi (a prominent scholar and, at the time, former Administrator of Jiujiang). There he met and befriended Gongsun Zan.
The adolescent Liu Bei was said to be unenthusiastic in studying but rather fond of hunting, music, and nice clothings. Few of words, calm in demeanor, and kind to his friends, Liu Bei was well-liked by his contemporaries. He was said to have long arms and large earlobes.
<b>Yellow Turban Rebellion</b>
In 184, at the outbreak of the Yellow Turban Rebellion, Liu Bei called to raise a volunteer army. For that, he got financial contributions from two wealthy horse merchants and he gained a group of loyal followers, most famous amongst whom were Guan Yu and Zhang Fei.
Liu Bei led his army to join with the provincial army. Together they scored several victories against the rebels. As reward, he was appointed Prefect of Anxi (???), Zhongshan commandery (??)—a position he soon left by refusing to bend to a corrupted inspector.
He then traveled south with his followers to join another volunteer army to suppress the Yellow Turbans, who glared up again in Xu Province (??, northern Jiangsu). For that achievement, he was appointed Prefect and Captain of Gaotang (Gaotang ling ???, Gaotang wei ???).
<b>Succeeding Tao Qian</b>
In 192, after the coalition against Dong Zhuo broke up, the country sank into war and chaos. Overran by rebels, Liu Bei moved north to seek safety with Gongsun Zan, who at the time was fighting with Yuan Shao for control of Ji Province (Hebei) and Qing Province (Shandong). Gongsun Zan sent him to help Tian Kai (to fight Yuan Shao) in Shandong. For this, he was later made Prefect of Pingyuan County (??), then Chancellor of Pingyuan, located on the border of Yuan Shao.
In 194, Cao Cao launched a campaign against Tao Qian in Xu Province. At the time, there were two opposing alliances—Yuan Shu and Gongsun Zan on one side, Yuan Shao and Cao Cao the other. Because Tao Qian was being hard pressed, he appealed to Tian Kai for help. Tian Kai and Liu Bei moved to save him.
However, Zhang Miao rebelled and called in Lü Bu to take over Cao Cao's base (Yan Province—??, present day western Shandong). Cao Cao had to withdraw. Tao Qian asked Liu Bei to station in nearby Xiaopei (??, present day Pei County, Jiangsu) and gave him 4000 more troops, in addition to 1000 or so troops and some Wuhuan cavalry already under his command.
Later that year, Tao Qian died. On his deathbed, he had resolved to have Liu Bei taking over his domain and entrusted Mi Zhu to carry out the transfer of power. Hesitant initially, Liu Bei refused but eventually accepted on advices from Kong Rong and Chen Deng.
<b>Conflicts with Lü Bu</b>
In 195, Lü Bu was eventually defeated by Cao Cao and sought refuge under Liu Bei. In the next, Yuan Shu invaded Xu Province. Liu Bei led his army to Xuyi and Huaiyin (??, in Guangling, south of Xu Province) to counter. They faced each other for a month without any decisive result.
Zhang Fei, left by Liu Bei to hold Xiapi (capital of Xu Province at the time), quarreled and killed Cao Bao (??), Chancellor of Xiapi from the time of Tao Qian, causing unrest in the city. Lü Bu took this opportunity and made a surprise attack to capture Xiapi, with it the families of Liu Bei and his officers.
Liu Bei returned on receiving the news, but his army had disintegrated by the time he reached Xiapi. Gathering whatever he could, he then moved to Guangling but was defeated by Yuan Shu. Liu Bei then treated to Haixi (??), Donghai Commandery (??). Faced with enemies on both sides and desperate little supplies (Mi Zhu had to provide the army out of his personal wealth), Liu Bei requested a truce with Lü Bu, who accepted and returned Liu Bei's family as an act of good faith, because he was becoming apprehensive of Yuan Shu. Lü Bu, fearing isolation, obstructed further attempt by Yuan Shu to eliminate Liu Bei. Liu Bei moved his camp to Xiaopei. There he rebuilt his strength, gathering over ten thousand men. Lü Bu became concerned and attacked Xiaopei. Liu Bei fled to Xuchang, where Cao Cao received him well, gave him some troops, provisions, and official appointment of Governor of Yu Province (???, Yuzhou mu), stationing in Pei to keep an eye on Lü Bu.
In 198, Lü Bu renewed his alliance with Yuan Shu to stem Cao Cao's growing influence and sent Gao Shun and Zhang Liao to attack Liu Bei. Cao Cao sent Xiahou Dun to support Liu Bei but he was defeated by Gao Shun. Liu Bei had to flee to Cao Cao again. Cao Cao himself led an army against Lü Bu, and eventually captured and executed the latter at Xiapi.
<b>Role in the Cao-Yuan conflict</b>
By 199, Cao Cao had Emperor Xian in his control and was issuing orders under pretense of imperial decrees. Liu Bei joined a conspiracy headed by Dong Cheng, a cousin of the emperor, and some other men to remove Cao Cao. Moreover, he was anxious to leave Cao Cao's stronghold Xuchang. Hence, on hearing that Yuan Shu had surrendered to and was on his way, via Xiapi, to join Yuan Shao in the north, Liu Bei asked to lead a force to intercept. Before his advisers were able to change his mind, Cao Cao consented, commissioned Liu Bei and Zhu Ling an army to move south. Having his path blocked, Yuan Shu turned back to Shouchun and died there.
Zhu Ling returned to Xuchang, but Liu Bei stayed behind with the army. He took the opportunity to kill Che Zhou (??), Cao Cao's appointed Governor of Xu Province, and took over the region once again. He left Guan Yu to guard Xiapi while he himself garrisoned Xiaopei.
Yuan Shao, having defeated Gongsun Zan, started moving against Cao Cao, set up camps on the north bank of the Yellow River. Liu Bei sent Sun Qian to Yuan Shao to request an alliance.
In 200, Dong Cheng's plot was discovered. All conspirators and their families were summarily executed.
Having to confront Yuan Shao at Guandu, Cao Cao sent his subordinates Liu Dai and Wang Zhong against Liu Bei. Liu Bei defeated them. Predicting Yuan Shao would be hesitant to attack Xuchang, Cao Cao turned south, overran Liu Bei's position. Not knowing if Liu Bei was dead or alive, Guan Yu submitted to Cao Cao.
Liu Bei fled north to Yuan Shao. There Yuan Shao and Yuan Tan treated him with honor. Liu Bei participated in the battles of Boma, in which Yuan Shao successively lost two of his best generals Yan Liang and Wen Chou, the former slain by Guan Yu.
Liu Pi in Runan rebelled against Cao Cao. Yuan Shao sent Liu Bei and some troops south to help them. Liu Bei and Liu Pi attacked Xuchang but were defeated by Cao Ren. Around this time, Guan Yu left Cao Cao and returned to Liu Bei. The defeated Liu Bei returned to the north and urged Yuan Shao to ally with Liu Biao, governor of Jing Province (??, present day Hubei and Hunan). Yuan Shao sent him south to Runan again to aid the bandit Gong Du. There Liu Bei defeated and killed Cao Cao's general Cai Yang.
<b>Taking refuge with Liu Biao</b>
After defeating Yuan Shao at the Battle of Guandu, Cao Cao led his army to attack Runan in 201. Liu Bei fled to Jing Province to seek refuge from Liu Biao.
Liu Biao welcomed Liu Bei personally, treating him as an honored guest. He also gave Liu Bei some troops and asked him to station in Xinye.
Liu Bei stayed in Jing Province several years. One time he was in attendance upon Liu Biao and he got up to go to the lavatory. As he came back, he was weeping. Surprised, Liu Biao asked what was the matter. Liu Bei answered "In earlier times, I never left the saddle. My thighs were thin. Now I do not ride anymore, they are fat and flabby. The days and months pass like a stream, and old age will come, but I have achieved nothing. That's why I am sad."
In 202, Cao Cao sent Yu Jin and Xiahou Dun to attack Liu Bei. Liu Bei ambushed and defeated them at Bowang.
In 207, Cao Cao planned a campaign to conquer the Wuhuan in the north, but was apprehensive that Liu Biao might attack his base. Guo Jia assured him that Liu Biao wouldn't move, because "he knows his ability is no match for Liu Bei. If he gives Liu Bei an important post, he must be concerned that Liu Bei will become too powerful. But if he gives him a lesser position, Liu Bei would be reluctant to serve him." Cao Cao agreed. Indeed when Liu Bei advised Liu Biao to attack Xuchang while Cao Cao was away, Liu Biao would not agree—only to express regret when the opportunity was gone.
Away from the battlefields in the east and under the capable rule of Liu Biao, Jing Province was prosperous and a popular destination for literati fleeing the destruction of war. Liu Bei inquired Sima Hui, a revered recluse, about scholars. Sima Hui named Zhuge Liang and Pang Tong as exceptional men that comprehended the important affairs of the age. Xu Shu also urged Liu Bei to call on Zhuge Liang.
So Liu Bei went to see Zhuge Liang. He had to make three trips before he was able to see him. Zhuge Liang showed Liu Bei the Longzhong plan, a long-term strategy that outlined how Liu Bei could compete with Cao Cao.
In 208, Liu Biao died. His younger son Liu Cong succeeded him and instantly submitted to Cao Cao, without informing Liu Bei. By the time Liu Bei heard something, Cao Cao had reached Wancheng (modern Nanyang City). Abandoning his camp at Fancheng, Liu Bei led his troops away. Many of Liu Cong's attendants and the people of Jing Province turned to Liu Bei. By the time he reached Dangyang (??), his followers numbered more than one hundred thousands, moving only 10 li a day. He however sent Guan Yu ahead to wait for him in Jiangling, where the arsenal was, with Jing Province's fleet.
Afraid that Liu Bei might reach Jiangling before him, Cao Cao led his cavalry on a chase. In a day and a night, they caught up with Liu Bei and captured all his people, army, and baggage at the Battle of Changban. Leaving his family behind, Liu Bei fled with only scores of followers. With Guan Yu's fleet, they crossed the Mian River to Jiangxia (??) then the Yangzi to Xiakou (??) with Liu Qi, Liu Biao's eldest son, and his men.
<b>The battle of Red Cliffs</b>
When Liu Bei was still at Changban, Sun Quan's envoy Lu Su hinted to him that he should ally with Sun Quan against Cao Cao. Zhuge Liang, as Liu Bei's envoy, together with Lu Su went to meet Sun Quan at Chaisang (??) to seal the alliance.
Liu Bei and Sun Quan formed their first coalition against the southward expansion of Cao Cao. The two sides clashed at the Red Cliffs (northwest of present day Puqi County, Hubei). Cao Cao boasted 830,000 men (historians believe the realistic number was around 220,000), while the alliance at best had 50,000 troops.
However, Cao Cao's men, mostly from the north, were ill-suited to the southern climate and naval warfare, and thus entered the battle with a clear disadvantage. Furthermore, a plague that broke out undermined the strength of Cao Cao's army. The fire tactic used by Huang Gai and Zhou Yu also worked effectively against Cao Cao's vessels, which were chained together and thus allowed the fire to quickly spread. A majority of Cao Cao's troops were either burned to death or drowned in the river. Those who tried to retreat to the near bank were ambushed and annihilated by enemy skirmishers. Cao Cao himself barely escaped the encounter.
Cao Cao returned to the north, leaving Cao Ren and Xu Huang to hold Jiangling, Yue Jin to hold Xiangyang (modern day Xiangfan).
<b>Master of Jing Province</b>
While Zhou Yu, followed up his resounding victory, was fighting Cao Ren for Jiangling on the north bank, Liu Bei, after recommending Liu Qi to be the new Inspector of Jing Province (????, Jingzhou Shushi), mopped up the four commanderies south of the Yangzi—Changsha, Lingling (??, present day Yongzhou, Hunan), Guiyang (??), and Wuling (??). Liu Bei set his base at Gong'an (??) and began building up strength. When Liu Qi died, Liu Bei succeeded him as Governor of Jing Province. Sun Quan gave his younger sister as wife to Liu Bei to bolster the alliance.
Officials and men who previously served Liu Biao now turned to Liu Bei. Under the pressure of Liu Bei's growing influence on the south Jing Province, Sun Quan's position on the north Jing Province became untenable especially after the death of Zhou Yu in 210. Lu Su, successor to Zhou Yu's command post, moved his headquarter further east from Jiangling to Lukou (??), yielding western Jing province and access to northern Jing Province to Liu Bei. Diplomatically, they were "lending" Liu Bei Jing Province—a debt that Liu Bei however never recognized.