 In 179 BC, the Âu Lạc Kingdom was annexed by Nanyue, which ushered in more than a millennium of Chinese domination.By the middle of the 5th century, in the center of ancient Hanoi, the Liu Song dynasty set up a new district (縣, huyện) called Songping (Tong Binh), which later became a commandery (郡, quận), including two districts Yihuai (義懷) and Suining (綏寧) in the south of the Red River (now Từ Liêm and Hoài Đức districts) with a metropolis (the domination centre) in the present inner Hanoi.By the year 679, the Tang dynasty changed the region's name into Annan (Pacified South), with Songping as its capital.