Vietnam was under Chinese control for a thousand years before becoming a nation-state in the 10th century.