Liu Xi was Liu Yao's son by his first empress Yang Xianrong, formerly the empress of Emperor Hui of Jin. After he became emperor in 318 following Jin Zhun's coup against the emperor Liu Can, he created her empress in 319 and created Liu Xi crown prince. She died in 322. Following her death, a succession question came about. Liu Xi's older brother Liu Yin, Liu Yao's priorheir apparent, whom Liu Yao had assumed to have been killed in Jin Zhun's coup, had in fact escaped but was taken as a slave by the Heiniyuju tribe. In 323, Liu Yin revealed his identity to the chief of the tribe, who promptly delivered him back to his father. Liu Yao considered replacing Liu Xi with Liu Yin, since Liu Yin was previously his heir, but Liu Yin's uncle Bu Tai and another officialHan Guang spoke against it, and Liu Yin himself personally declined to replace Liu Xi. Liu Yao let Liu Xi remain crown prince, while granting Liu Yin special honors, including requiring Liu Xi to yield to Liu Yin as an older brother in ceremonies, rather than for Liu Yin to yield to Liu Xi as the crown prince. The relationship between the brothers appeared to remain cordial until their deaths. Around the new year of 329, Liu Yao was captured in battle by Later Zhao forces. Liu Xi became effectively acting emperor, and after consulting with Liu Yin, he decided to withdraw from the capital Chang'an west to Shanggui, the capital of the mountainous QinProvince, considered more easily defensible. However, the withdrawal caused a panic, and all Han Zhao generals abandoned their positions and fled to Qin Province as well, easily yielding most of remaining Han Zhao territory to Later Zhao. In fall 329, Han Zhao forces, under Liu Yin's command, tried to recapture Chang'an. Initially, he had some successes and recaptured much of the territory lost to Later Zhao. However, as he sieged Chang'an, the Later Zhao general Shi Hu arrived and defeated him. Liu Yin retreated toward Shanggui, and Shi Hu trailed him and defeated him again, capturing Shanggui. He killed Liu Xi, Liu Yin, along with all Han Zhao princes and high-level officials and generals. He forcibly relocated all other officials and the large clans of Qin and Yong Provinces to the Later Zhao capital Xiangguo, and massacred, in Luoyang, the members of the Xiongnu nobility. Han Zhao came to an end.