The site where Hanoi now stands has been inhabited since the Neolithic period. Emperor Ly Thai To moved his capital from Hoa Lu to Hanoi in 1010 AD, renaming the site Thang Long (city of Soaring Dragon). Hanoi served as the capital of the Later Le dynasty, founded by Le Loi, from its establishment in 1428 till 1788 when it was overthrown by Nguyen Hue, founder of the Tay Son dynasty. The decision by Emperor Gia Long, founder of the Nguyen dynasty, to rule from Hue relegated Hanoi to the status of a regional capital.
Over the centuries, a variety of names of Hanoi has been born. One of them was Dong Kinh from which the Europeans derived the name they eventually applied to all of northern Vietnam, Tonkin. The city was named Hanoi by Emperor Tu Duc in 1831.
From 1902 to 1953, Hanoi served as the capital of French Indochina. This was largely because of Tonkin’s proximity to southern China, where the French sought to expand their influence and because of Tonkin’s mineral resources. Hanoi remained the administrative center during the Japanese occupation (1940-1945) of the territory.
In August 1945, following the Japanese surrender, the Viet Minh under the leadership of Ho Chi Minh seized power in Hanoi, and the city was established as the capital of the Democratic Republic of Vietnam. The French, however, reasserted their control over Hanoi from 1946 till their defeat at Dien Bien Phu on May 7th, 1954.
Shortly thereafter Hanoi became the capital of the Democratic Republic of Vietnam (North Vietnam). During the Vietnam war, the bombing of Hanoi by the United States of Americas in 1965, 1968 and 1972 caused massive damage. Following the collapse of south Vietnam on April 30th, 1975.
North Vietnam extended its control over all of Vietnam. On July 2nd, 1976, the Socialist Republic of Vietnam was proclaimed and Hanoi established as its capital. The city observed its 1,000th anniversary in early October 2010 by staging a number of events that culminated with a massive parade on October 10th.