 In 866, Gao Pian, the Chinese Jiedushi, recaptured the city and named it Daluocheng (大羅城, Đại La Citadel, running from Quần Ngựa to Bách Thảo), walled by 5-meters, was the largest citadel of ancient Hanoi at the time.Daluocheng at the time with approximate 400,000 residents, became a important trading center of the Tang Dynasty due to the ransacked of Canton by Huang Chao rebellion.In 1010, Lý Thái Tổ, the first ruler of the Lý dynasty, moved the capital of Đại Việt to the site of the Đại La Citadel.