In 202 BC, after defeating Xiang Yu in Battle of Gaixia and ending the Chu-Han contention, Liu Bang was crowned the emperor of the newly established Han dynasty, and he built a new capital across the Wei River merely miles from the ruins of old Xianyang and named this new city Chang'an. The Han-era town of Anling (, tomb of emperor Hui) was located nearby and houses some of the Han dynasty's mausoleums.
