 In order to defeat the people's uprisings, in the later half of the 8th century, Zhang Boyi (張伯儀), a Tang dynasty viceroy, built Luocheng (羅城, La Thanh or La citadel, from Thu Le to Quan Ngua in present-day Ba Dinh precinct).In the earlier half of the 9th century, it was further built up and called Jincheng (金城, Kim Thanh or Kim Citadel).In 863, Nanzhao army laid siege of Jincheng and killed 150,000 inhabitant in the city.