In the winter of 938, King Ngo Quyen defeated the Southern Han army in the famous Battle of Bach Dang. In the spring of 939, Ngo Quyen established a completely independent government, abolished the position of Governor, proclaimed himself King, and established the capital in Co Loa, ending more than 1000 years of Chinese domination, opening a long period of independence for the Vietnamese people.