Towards the end of the Eastern Han dynasty, Liu Bei, a warlord and distant relative of the Han imperial clan, rallied the support of many capable followers. Following the counsel of his advisor, Zhuge Liang, and Zhuge's Longzhong Plan, Liu Bei conquered parts of Jing Province (covering present-day Hubei and Hunan) in 208 and 209, took over Yi Province (covering present-day Sichuan and Chongqing) from the warlord Liu Zhang between 212 and 214, and wrestled control of Hanzhong from his rival, Cao Cao, in 219. Afterwards, Liu Bei proclaimed himself King of Hanzhong.