During Han dynasty, most part of the area belonged to You Prefecture while some parts belonged to Wuhuan, Xiongnu and Xianbei. When Liu Bang established Han dynasty, he granted Dai and the title of King of Dai to his brother Liu Zhong in 201 BC. One year later, Liu Zhong was defeated by Modu Chanyu of Xiongnu and escaped, thus demoted. In 196 BC, Chen Xi, the chancellor of Zhao, rebelled against the emperor and occupied more than 20 cities soon after. As a result, Liu Bang commanded an army in person from Luoyang. During the war, the empress launched a coup d'état and killed Han Xin, the most important general who helped establish Han dynasty. With the help of Fan Kuai and Zhou Bo, Liu Bang defeated Chen Xi very soon. Following the rebellion, Liu Bang granted the title of King of Dai to his third son, Liu Heng, later Emperor Wen of Han.