structural:expansion
Hanoi (Vietnamese: Hà Nội) is the capital and second-most populous city of Vietnam. The name "Hanoi" translates to "inside the river," – Hanoi is bordered by the Red and Black Rivers. As a municipality, Hanoi consists of 12 urban districts, 17 rural districts, and one district-level town. The city encompasses an area of 3,359.84 km (1,297.24 sq mi) and as of 2023, a population of 8,587,100. Hanoi had the second-highest gross regional domestic product of all Vietnamese provinces and municipalities at 51.4 billion USD in 2022, behind Ho Chi Minh City.

In the third century BCE, the Cổ Loa Capital Citadel of Âu Lạc was constructed in what is now Hanoi. Âu Lạc then fell under Chinese rule for around a thousand years. In 1010, Vietnamese emperor Lý Thái Tổ established the capital of the imperial Vietnamese nation Đại Việt in modern-day central Hanoi, naming the city Thăng Long (lit. ' ascending dragon '). In 1428, king Lê Lợi renamed the city to Đông Kinh (東京, lit. ' eastern capital '), and remained being so until 1789. The Nguyễn dynasty in 1802 moved the national capital to Huế and the city was renamed Hanoi in 1831. It served as the capital of French Indochina from 1902 to 1945. After the August Revolution, the Democratic Republic of Vietnam designated Hanoi as the capital of the newly independent country. In 2008, Hà Tây Province and two other rural districts were annexed into Hanoi, almost tripling Hanoi's area.

Hanoi is the cultural, economic and education center of Northern Vietnam. As the country's capital, it hosts 78 foreign embassies, the headquarters of People's Army of Vietnam, its own Vietnam National University system, and many other governmental organizations. Hanoi is also a major tourist destination, with 18.7 million domestic and international visitors in 2022. The city hosts the Imperial Citadel of Thăng Long, Ho Chi Minh Mausoleum, Hoàn Kiếm Lake, West Lake, and Ba Vì National Park near the outskirts of the municipality. Hanoi's urban area has a wide range of architectural styles, including French colonial architecture, brutalist apartments typical of socialist nations and disorganized alleys – tube houses stemming from the city's rapid growth in the 20th century.