History of Vietnam

The history of Vietnam begins around 2,700 years ago. Successive dynasties based in China ruled Vietnam directly for most of the period from 207 BC until 938, when Vietnam regained its independence. Vietnam remained a tributary state to its larger neighbor China for much of its history but repelled invasions by the Chinese as well as three invasions by the Mongols between 1255 and 1285. Emperor Trần Nhân Tông later diplomatically submitted Vietnam to a tributary of the Yuan to avoid further conflicts. The independent period temporarily ended in the middle to late 19th century, when the country was colonized by France (see French Indochina). During World War II, Imperial Japan expelled the French to occupy Vietnam, though they retained French administrators during their occupation. After the war, France attempted to re-establish its colonial rule but ultimately failed in the First Indochina War. The Geneva Accords partitioned the country in two with a promise of democratic election to reunite the country.
However, rather than peaceful reunification, partition led to the Vietnam War. During this time, the People's Republic of China and the Soviet Union supported the North while the United States supported the South. After millions of Vietnamese deaths, the war ended with the fall of Saigon to the North in April 1975. The reunified Vietnam suffered further internal repression and was isolated internationally due to the continuing Cold War and the Vietnamese invasion of Cambodia. In 1986, the Communist Party of Vietnam changed its economic policy and began reforms of the private sector similar to those in China. Since the mid-1980s, Vietnam has enjoyed substantial economic growth and some reduction in political repression, though reports of corruption have also risen.
Early kingdoms.
Evidence of the earliest established society other than the prehistoric Iron Age Đông Sơn culture in Northern Vietnam was found in Cổ Loa, an ancient city situated near present-day Hà Nội. 
According to myth, the first Vietnamese people were descended from the Dragon Lord Lạc Long Quân and the Immortal Fairy Âu Cơ. Lạc Long Quân and Âu Cơ had 100 sons before deciding to part ways. 50 of the children went with their mother to the mountains, and the other 50 went with their father to the sea. The eldest son became the first in a line of early Vietnamese kings, collectively known as the Hùng kings (Hùng Vương or the Hồng Bàng Dynasty). The Hùng kings called their country, located on the Red River delta in present-day northern Vietnam, Văn Lang. The people of Văn Lang were known as the Lạc Việt.