Emperor Gaozu of Han (256 or 247 – 1 June 195 BC), personal name Liu Bang, was the founder and first emperor of the Han dynasty.
Liu Bang was among the few dynastic founders to have been born in a peasant family. He initially entered the Qin dynasty bureaucracy as a minor law enforcement officer in his hometown in Pei County, within the conquered state of Chu. During the political chaos following the death of Qin Shi Huang, who had been the first emperor in Chinese history, Liu Bang renounced his civil service position and became a rebel leader, taking up arms against the Qin dynasty. He outmanoeuvred rival rebel leader Xiang Yu to invade the Qin heartland and forced the surrender of the Qin ruler Ziying in 206 BC.