Kings of the Han dynasty
The kings from other dynasties (, "yìxìng wáng") were mostly remnants of the rebellion against the Qin dynasty. Following the Dazexiang Uprising, many noblemen rose in rebellion. Heirs, pretenders, and warlords called themselves "kings" and claimed sovereignty as continuations of the six states previously suppressed by Qin. Among these, Chu was the most powerful. However, its rightful ruler Huai II was assassinated on the orders of the warlord Xiang Yu and the 18 Kingdoms Xiang had formed rose in rebellion against him. Liu Bang, king of Han, ultimately defeated Chu and established the new Han dynasty. The kings who had sided with him were then permitted to maintain their titles and lands. A few other kingdoms were also formed by Liu Bang for generals and favorites.
Han dynasty
From roughly 115 to 60 BC, Han forces fought the Xiongnu over control of the oasis city-states in the Tarim Basin. Han was eventually victorious and established the Protectorate of the Western Regions in 60 BC, which dealt with the region's defense and foreign affairs. The Han also expanded southward. The naval conquest of Nanyue in 111 BC expanded the Han realm into what are now modern Guangdong, Guangxi, and northern Vietnam. Yunnan was brought into the Han realm with the conquest of the Dian Kingdom in 109 BC, followed by parts of the Korean Peninsula with the Han conquest of Gojoseon and colonial establishments of Xuantu Commandery and Lelang Commandery in 108 BC. In China's first known nationwide census taken in 2 AD, the population was registered as having 57,671,400 individuals in 12,366,470 households.