The area was called V?n Lang by Vietnamese ancestors from around 2000-100 BCE. Evidence of the earliest established society in northern Vietnam, along with the ?ông S?n culture, was discovered in the C? Loa Citadel area, the core of the ancient city of C? Loa. Its site is located near the historical city of Hà N?i and present-day Hanoi, the capital city of Vietnam.
According to Vietnamese myths the first Vietnamese peoples 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 they decided 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 earliest Vietnamese kings, collectively known as the Hùng kings (Hùng Vng or the H?ng Bàng Dynasty). The Hùng kings called the country, which was then located on the Red River delta in present-day northern Vietnam, V?n Lang. The people of V?n Lang were referred to as the L?c Vi?t.
Lê L?i (reigned 1428-1433), a notable land owner in the Lam Kinh region, had a following of more than 1,000 people before rising up against the Chinese Ming dynasty. Following his victory he mounted the throne and established himself in the city of Thang Long ('Ascending Dragon') (former C? Loa, present Hà N?i). Thang Long was also called ?ông Kinh (??), meaning 'Eastern Capital'. ( is identical in meaning and written form in Chinese characters to that of Tokyo).
During the 18th and 19th century, Westerners commonly used the name Tonkin (from ?ông Kinh) to refer to northern Vietnam, then ruled by the Tr?nh lords (while Cochinchina was used to refer to Southern Vietnam, then ruled by the Nguy?n lords, and Annam, from the name of the former Chinese province was used to refer to Vietnam as a whole).
After French assistance to Nguy?n Ánh to unify Vietnam under the Nguyen Dynasty, the French Navy began its heavy presence in the Mekong Delta and later colonized the southern third of Vietnam including Saigon in 1867.
During the Sino-French War (1884-1885), Tonkin, then considered a crucial foothold in Southeast Asia and a key to the Chinese market, was invaded by the French in the Tonkin Campaign. It was colonized as the French protectorate of Tonkin, and was gradually separated from the French protectorate of Annam, with Vietnam being effectively separated into three parts.
During French colonial rule within French Indochina, Hanoi was the capital of Tonkin protectorate, and in 1901 became the capital of all French Indochina (Cambodia, Laos, & Vietnam). French colonial administration ruled until 9 March 1945, with 1941-1945 during the World War II Japanese occupation of Vietnam. French administration was allowed by the Japanese as a puppet government. Japan briefly took full control of Vietnam in March 1945, as the Empire of Vietnam. Tonkin became a site of the Vietnamese Famine of 1945 during this period.
After the end of World War II, French rule returned over French Indochina.
Northern Vietnam became a stronghold for the communist Viet Minh. Hanoi was later reoccupied by the French and conflict between the Viet Minh and France broke out into the First Indochina War. In 1949 it came under the authority of the State of Vietnam, a new Associated state of the French Union.
After the French defeat at the Battle of Dien Bien Phu in western Tonkin in 1954, the communist nation of North Vietnam was formed, consisting of Tonkin and northern Annam. The State of Vietnam's territory was reduced to the southern Vietnamese region, becoming South Vietnam.