당 고조
Liu Fang was nominated as the viceroy of Jiaozhou. He died while returning from Champa to the north and Qiu He (丘和) replaced him to rule the land. However, in 618, Emperor Gaozu of Tang overthrew the Sui dynasty and established the Tang dynasty. Qiu He first submitted to Xiao Xian's empire in 618, then to the Tang emperor in 622, incorporating northern Vietnam into the Tang dynasty. A local ruler of Jiuzhen (today's Thanh Hóa), Lê Ngọc , stayed loyal to Xiao Xian and fought against the Tang for another three years.