The Han Dynasty includes two periods: the Western Han and the Eastern Han. In 202 BC, Liu Bang established the Han Dynasty, choosing Chang'an (today'sXi'an) as his capital. In 9 AD,Wang Mang staged a coup, and set up the Xin Dynasty. The Han Dynasty was restored in 25 AD by Liu Xiu, who moved the capital to the city known today as Luoyang.