Vietnam was controlled by Imperial China for over a millennium, from 200 BC to 938 AD. The Vietnamese became independent of Imperial China in the year 938 after the Vietnamese victory at the Battle of Bach Dang. Successive Vietnamese royal dynasties flourished as the nation expanded geographically and politically to Southeast Asia until the Indochina peninsula was colonized by the French in the XIX century