A fortified settlement was founded by the
Chinese Liu Song dynasty as the
seat of within
Jiaozhi ('''')
commandery. The name refers to its pacification by the dynasty. It was elevated to its own commandery ) at some point between AD 454 and 464. The commandery included the districts of Yihuai and Suining . The
Sui general
Liu Fang reconquered the territory from the Vietnamese state of
Van Xuan in 603 and made Tống Bình the capital of Jiaozhi in place of
Long Biên. During this period, it was also known as
Luocheng ( Wall"; ), although this name originally referred to nearby
Long Biên and later referred to the fortification which grew into
Thăng Long and modern
Hanoi. Under the
Tang, the city continued to function as the capital of
Annam. For a few years after 621, the city administered a
prefecture as
Songzhou . The name Tống Bình was ended in 714. The rebellion of
Mai Thúc Loan captured the city in 722. ==See also==