Emperor Gaozu of Han, personal name Liu Bang, was the founder and first emperor of the Han dynasty. Born into a peasant family, he rose from a minor law enforcement post in Pei County to lead a rebellion against the Qin dynasty. After a civil war known as the Chu–Han Contention, he won control of much of the former Qin territory in 202 BC and established the Han dynasty. He died in 195 BC and was succeeded by his son Liu Ying.
Early life and rise





Liu Bang was among the few dynastic founders born into a peasant family. He worked as a minor official in his hometown, then renounced that post when the political chaos after the death of Qin Shi Huang gave rise to rebellion. Legends about his ancestry, including claimed descent from the mythical Emperor Yao and the Yellow Emperor, were used to support his claim to rule. He gathered followers as an outlaw and eventually became leader of the people of Pei County, where he took the title Duke of Pei.
Founding the Han dynasty





After the fall of the Qin dynasty, the rebel leader Xiang Yu divided the former empire and gave Liu Bang control of the remote region of Bashu, with the title King of Han. Liu broke out of this region and fought in the Chu–Han Contention, a civil war among rival forces. His victory at the Battle of Gaixia in 202 BC allowed him to establish the Han dynasty with himself as emperor. His reign included reduced taxes and labour burdens, support for Confucianism, and the policy of heqin, a system of arranged marriages meant to keep peace with the Xiongnu.
