After the King of Han defeated Xiang Yu, he became emperor in 202 BC.
Tips
history
The title came with 汉中 on the upper 汉水, a remote fief meant to keep Liu Bang out of the way. When he won the empire he kept the name, so the dynasty became the 汉朝, and through it come 汉族, the Han people, and 汉语, Chinese.