History of Hanoi – A timeline

A composite illustration showing the history of Hanoi from ancient temples and imperial gates through French colonial streets to war helicopters and the modern city skyline
The history of Hanoi stretches back more than 3,000 years, making it one of the oldest continuously inhabited capitals in Southeast Asia — shaped by Chinese dynasties, Vietnamese emperors, French colonizers, and two devastating wars. Few cities in the world carry this many layers in such a compact, walkable space, and those layers are still visible today in everything from ancient citadel walls to crumbling colonial facades. This guide walks through Hanoi's history in chronological order, from its earliest settlements along the Red River to the modern city it is today, with the key places where you can still see that history in person.

Subjects

Vietnam Travel Guide book cover by Local Vietnam featuring Halong Bay landscapes, tailoring your trip with tips from authors Nhung and Marnick.
FREE eBook Vietnam: 200+ pages practical info

Before Hanoi: Prehistoric settlements and early kingdoms (3000 BCE – 257 BCE)

Long before Hanoi had a name, people were already living here. The Red River Delta — fertile, flat, and fed by one of Southeast Asia’s great rivers — has attracted settlers for at least 3,000 years. Archaeological finds in the area point to permanent communities farming, fishing, and trading along the riverbanks as far back as 3000 BCE.

By around 1000 BCE, the region was home to the Dong Son culture, one of the most sophisticated Bronze Age civilizations in Southeast Asia. The Dong Son people are best known for their large, intricately decorated bronze drums — objects that still turn up in museum collections across Vietnam and remain a symbol of early Vietnamese identity.

The first recognizable political center near present-day Hanoi came in 257 BCE, when King Thuc Pan united the local tribes and established his capital at Co Loa, a few kilometers north of the modern city. Co Loa was no small settlement — it was a fortified citadel of roughly 500 hectares, built with a distinctive spiral layout that shows a surprisingly advanced understanding of defensive architecture. It served as the capital of the kingdom of Au Lac until the Chinese moved in and ended the experiment a few decades later. Parts of Co Loa still exist today and are worth visiting if the early history of Hanoi interests you.

A thousand years of Chinese rule (208 BCE – 938 CE)

For most Western travelers, this stretch of history is the least familiar — and honestly, the least glamorous. For roughly 1,100 years, the area that would become Hanoi was simply a Chinese administrative outpost, passed between dynasties and renamed whenever a new power took over.

It went through several names during this period — Long Bien, Tong Binh, and eventually Dai La — none of which stuck, because none of them reflected anything the Vietnamese people chose for themselves. The city was governed from the north, taxed heavily, and used primarily as a staging point for Chinese control over the Red River Delta.

That said, the Vietnamese never fully accepted foreign rule. The most celebrated act of resistance came as early as 40 CE, when two sisters — Trung Trac and Trung Nhi — led a rebellion that drove the Chinese out and established a brief independent state, with Trung Trac ruling as queen. It lasted only three years before the Han dynasty crushed it, but the story never faded. Two thousand years later, the Trung Sisters remain among the most revered figures in Vietnamese culture — honored with temples, streets, and a national commemoration day. Their temple stands in Hanoi to this day.

The pattern repeated several times over the following centuries, most notably in 544 CE when a leader named Ly Bi briefly established an independent kingdom at Long Bien before the Chinese returned. The desire for independence never disappeared, no matter how long the occupation lasted.

The most consequential development of this entire era came in 866 CE, when a Chinese military commander named Gao Pian significantly expanded and reinforced the fortress at the site, renaming it Dai La. The walls he built, and the strategic logic behind choosing this location — elevated ground above the Red River floodplain, central to the delta’s trade routes — would prove so sound that a Vietnamese emperor would choose the exact same site 144 years later to build his capital. In that sense, Gao Pian inadvertently laid the physical foundation for everything that came after.

The founding of Thang Long (1010)

In 1010, a general-turned-emperor named Ly Thai To made a decision that would define Vietnamese history for the next thousand years. He moved the capital from Hoa Lu — a defensible but remote valley in what is now Ninh Binh — to the old Dai La fortress on the banks of the Red River, and renamed it Thang Long, meaning “Ascending Dragon.”

The name came from a legend: as the emperor’s boat approached the shore, a golden dragon was seen rising into the sky. Whether you take that literally or not, the symbolism was clear — this was a place of power and good fortune. The dragon became one of Vietnam’s most enduring symbols, and Thang Long became its heart.

The practical reasons for the move were just as compelling as the legend. Dai La sat at the center of the Red River Delta, surrounded by some of the most productive agricultural land in all of Southeast Asia. It was accessible by river from multiple directions, easy to supply, and far better positioned for governing a growing kingdom than the mountain stronghold at Hoa Lu.

Ly Thai To immediately began construction of an imperial citadel on the site — a walled complex of palaces, temples, and administrative buildings that would be expanded and rebuilt by successive dynasties for the next eight centuries. Much of it was destroyed over the years, but what remains is now a UNESCO World Heritage Site.

The founding of Thang Long also triggered something unexpected: the birth of the Old Quarter. When the emperor moved his court north, merchants, craftsmen, and traders followed. They settled just outside the citadel walls and organized themselves into guilds, each occupying its own street and selling its own specialty — silk on one street, paper on another, tin goods on the next. Those streets still exist today, and the neighborhood they form is still one of the most atmospheric places in all of Vietnam.

The Ly and Tran dynasties: Thang Long’s golden age (1010 – 1400)

The two centuries following the founding of Thang Long were, by most measures, the high point of early Vietnamese civilization. Under the Ly and Tran dynasties, the city grew into a genuine cultural and political capital — not just for Vietnam, but for the wider region.

In 1070, the Ly dynasty built the Temple of Literature just southwest of the citadel, dedicating it to Confucius and Vietnamese scholars. Six years later it became Vietnam’s first university, educating generations of mandarins, poets, and officials. It is still standing today, and still one of the most beautiful historical sites in Hanoi.

The most dramatic test of this era came not from within, but from the north. Between 1258 and 1288, the Mongol Empire — then the most powerful military force on earth — invaded Vietnam three times, and three times was repelled. Thang Long was evacuated and temporarily occupied during each invasion, but the Vietnamese forces, led by the brilliant general Tran Hung Dao, refused to fight on Mongol terms. They used guerrilla tactics, flooded the delta, and cut off supply lines until the invaders were forced to withdraw. Defeating the Mongols even once would have been remarkable. Doing it three times cemented Thang Long’s place as the symbol of Vietnamese resistance.

From this period also dates one of the few remaining physical remnants of the old city walls — the Hanoi Old City Gate, which once formed part of the southern defenses of Thang Long.

By the late 1300s, the city had been a thriving capital for nearly four centuries. But political instability was setting in, and a new and more turbulent chapter was about to begin.

Ming occupation and the Le dynasty (1400 – 1786)

The early 1400s brought upheaval. The Ho dynasty, which had briefly seized power, moved the capital south in 1397 and renamed the city Dong Do. It was a short-lived experiment — the Ming Chinese invaded in 1407, took the city, and renamed it Dong Quan. What followed was one of the harshest occupations in Vietnamese history. The Ming dismantled temples, confiscated land, forced locals to adopt Chinese customs, and extracted resources on a massive scale. Many Vietnamese scholars and artisans were taken to China. The occupation lasted twenty years, and it left deep scars.

The man who ended it was Le Loi, a landowner from Thanh Hoa province who spent a decade waging guerrilla warfare against the Ming before finally driving them out in 1428. He founded the Le dynasty, restored the city as the national capital, and renamed it Dong Kinh — meaning “Eastern Capital.” European traders and missionaries who arrived in later centuries heard this name, mangled it into “Tonkin,” and used it to refer to the entire northern region of Vietnam. The name stuck in European maps and records for centuries.

Under the Later Le dynasty, Dong Kinh flourished again. The city expanded, trade grew, and Vietnamese culture — literature, poetry, law — reached new sophistication. For much of the 15th and 16th centuries, this was one of the most important cities in mainland Southeast Asia.

But the Le dynasty’s authority gradually weakened, and by the 1500s real power had shifted to rival noble families. The Trinh lords controlled the north, including Dong Kinh, while the Nguyen lords held the south. The country was effectively split in two, and the capital — though it kept its name and its symbolic importance — became more of a political prize than a seat of genuine power. It was a slow decline, and it set the stage for a dramatic change of ownership that would arrive in the early 19th century.

The Nguyen dynasty and the name “Ha Noi” (1802 – 1883)

After eight centuries as Vietnam’s capital, Thang Long was about to be demoted.

In 1802, Nguyen Anh — who had unified the country after decades of civil war — declared himself Emperor Gia Long and promptly moved the capital south to Hue, closer to his powerbase in central Vietnam. Thang Long, the city that had defined the Vietnamese state since 1010, was reduced to a regional administrative center. For a city with that kind of history, it was a significant fall from grace.

The name change followed in 1831, when Emperor Minh Mang officially renamed the city Ha Noi — roughly translated as “between the rivers” or “within the waters,” a reference to its geography between the Red River and a network of surrounding lakes. After carrying names like Thang Long, Dong Kinh, and Dong Do across eight centuries, the city finally had the name it still carries today.

Despite losing its capital status, Hanoi remained the most important city in the north — commercially active, densely populated, and culturally significant. The Nguyen emperors may have governed from Hue, but Hanoi was still where northern Vietnam’s money and influence concentrated.

That made it an obvious target for France. French forces attacked and briefly seized Hanoi in 1873, withdrew under diplomatic pressure, then returned in force in 1882. By 1883, following the death of the French commander Henri Rivière in an ambush just outside the city, France tightened its grip and formalized its control over the entire north. The era of Vietnamese self-rule in Hanoi was over.

French colonial Hanoi (1883 – 1945)

The French did not just occupy Hanoi — they rebuilt it. Within a generation, the city was physically transformed in ways that are still visible on every street corner today.

When France made Hanoi the capital of French Indochina in 1902, the colonial administration launched one of the most ambitious urban projects in Southeast Asian history. Swamps were drained, lakes were filled, and a grid of wide, tree-lined boulevards was laid across the landscape. The chaotic, organic city that had grown around the old citadel walls was overlaid with a version of Paris in the tropics — grand public buildings, shaded avenues, and a new residential quarter for French officials and their families.

The landmarks built during this period still define much of central Hanoi. The Hanoi Opera House, constructed between 1901 and 1911 and modeled on the Paris Opera, remains one of the finest colonial buildings in Southeast Asia. St. Joseph’s Cathedral was completed in 1886, a neo-Gothic structure with twin bell towers that looks startlingly out of place and yet somehow fits perfectly into the city. Long Bien Bridge, finished in 1902, was an engineering landmark — a steel cantilever structure spanning the Red River that became a vital artery for the entire region. The French Quarter that spread out southeast of Hoan Kiem Lake was designed with wide sidewalks, elegant villas, and carefully placed institutional buildings — a deliberate contrast to the dense, narrow streets of the Old Quarter nearby.

Not everything the French built was meant to impress. In 1896 they completed Hoa Lo Prison — known to its builders as Maison Centrale — a facility designed to hold Vietnamese political prisoners. It was built on the site of a former ceramics village, which is where the Vietnamese name comes from: hoa lo means “fiery furnace.” The prison was enormous for its time, covering nearly 13,000 square meters, and it filled quickly. By the time the French were defeated in 1954, a facility built for 500 prisoners was holding more than 2,000.

That points to the other side of the French colonial story, which the grand architecture tends to obscure. French rule brought roads, railways, and recognizable buildings, but it also brought heavy taxation, forced labor, land seizures, and systematic suppression of Vietnamese political life. Independence movements grew steadily through the 1920s and 1930s, and the prison cells of Hoa Lo became, in a grim irony, something of a school for Vietnamese revolutionaries. Many of the men who would later lead the independence movement spent time there first.

Japanese occupation and the August Revolution (1940 – 1945)

The history of Hanoi during World War Two is more complicated than most people expect.

When Japan moved into French Indochina in 1940, it did not immediately dismantle the French colonial administration. Instead, it left the French largely in place as a convenient proxy, allowing them to continue running day-to-day governance while Japan extracted resources and used the territory for its military operations southward. For several years, Hanoi existed in an uneasy dual occupation — French administrators still sat in their offices, while Japanese soldiers controlled the streets.

That arrangement ended abruptly in March 1945, when Japan launched a sudden coup against the French throughout Indochina, disarming French forces and taking direct control. A few months later, Japan itself surrendered to the Allies.

What followed was a power vacuum, and Ho Chi Minh moved into it with extraordinary speed. On September 2, 1945, standing in Ba Dinh Square in front of a crowd of hundreds of thousands, he read out the Vietnamese Declaration of Independence — deliberately echoing the American Declaration of 1776 — and proclaimed the Democratic Republic of Vietnam. The history of Hanoi as the capital of an independent Vietnamese state had, after more than a century of foreign rule, begun again. It would not last long before being tested.

The First Indochina War (1946 – 1954)

Independence lasted barely a year before France moved to reclaim its colony. The First Indochina War began in earnest in late 1946, after negotiations between the French and Ho Chi Minh’s government collapsed and French warships shelled the port of Hai Phong in November. Full-scale war broke out the following month. French forces reoccupied Hanoi, and the Viet Minh — Ho Chi Minh’s independence movement — retreated into the countryside and mountains to wage a guerrilla campaign they had already been preparing for.

For most of the next eight years, Hanoi was a French-controlled city in a country at war. Life continued on the surface — cafes, markets, colonial administration — while fighting raged in the hills and rice paddies outside. The Viet Minh never tried to hold cities. They understood that their strength was in mobility and endurance, not in defending fixed positions against a better-equipped enemy.

The war ended not in Hanoi, but 300 kilometers to the northwest. In the spring of 1954, French forces suffered a catastrophic defeat at Dien Bien Phu, where General Vo Nguyen Giap had surrounded and systematically dismantled a supposedly impregnable French garrison over 57 days. The defeat shocked France and the watching world, and made further fighting politically impossible. The Geneva Accords signed that summer divided Vietnam at the 17th parallel — Ho Chi Minh’s Democratic Republic in the north, a Western-backed government in the south.

On October 10, 1954, Viet Minh troops marched back into Hanoi. The French colonial era was over. Hanoi was the capital of North Vietnam, and Ho Chi Minh was its leader.

Hanoi as capital of North Vietnam (1954 – 1964)

The decade that followed was one of the quieter chapters in Hanoi’s history — at least by Vietnamese standards.

With independence secured in the north, the government turned its attention to rebuilding and restructuring. The Soviet Union and China became the dominant foreign influences, providing economic aid, technical expertise, and an ideological framework. Soviet-style architecture began appearing alongside the French colonial buildings — wide, utilitarian blocks in grey concrete that still stand in parts of the city today, a layer of Cold War aesthetics added to Hanoi’s already complex visual identity.

Ba Dinh Square, where Ho Chi Minh had declared independence in 1945, became the symbolic center of the new state. The area around it was gradually developed into a formal political district — government ministries, the Presidential Palace, and eventually the site reserved for Ho Chi Minh’s mausoleum, though that would not be built until after his death in 1969.

The city itself expanded outward, absorbing surrounding villages and growing its population with workers, students, and officials drawn to the new capital. It was a period of nation-building — schools, hospitals, and state institutions being constructed with the help of communist allies — while to the south, tensions with the American-backed government in Saigon were steadily building toward something neither side could yet fully predict.

Hanoi during the Vietnam War (1964 – 1975)

The Vietnam War is the chapter of Hanoi’s history that most international visitors know best, and with good reason — the city paid an extraordinary price during the American war.

US air strikes against North Vietnam escalated sharply from 1965, targeting bridges, railways, power plants, and military infrastructure in and around Hanoi. The city adapted: residents built personal bomb shelters into the pavements — small concrete cylinders barely large enough for one person — and many children and elderly were evacuated to the countryside. Life continued, but under a constant threat from above.

Hoa Lo Prison, already notorious from its French colonial days, took on a new role. From 1964 onwards, American pilots shot down over North Vietnam were held there. The prisoners — who nicknamed it the “Hanoi Hilton” with the dark humor typical of POWs — endured harsh conditions and, by many accounts, systematic mistreatment. Among them was Navy pilot John McCain, shot down over Hanoi in October 1967. When the North Vietnamese discovered his father was a senior US admiral, they offered him early release as a propaganda gesture. McCain refused, unwilling to be released ahead of men who had been held longer. He spent five and a half years in Hoa Lo before being released in 1973.

The most devastating period came in December 1972. President Nixon, frustrated by stalled peace negotiations, ordered Operation Linebacker II — what the Vietnamese call “the 12 days and nights” and Americans know as the Christmas Bombings. Over twelve days, more than 200 B-52 bombers flew 741 sorties and dropped over 20,000 tons of bombs on Hanoi and the surrounding area. At least 1,600 civilians were killed in the city. The Kham Thien neighborhood was particularly devastated — 278 people killed in a single night, 2,000 buildings destroyed. The scale of destruction drew international condemnation from allies and enemies alike.

North Vietnam’s air defenses, however, performed better than anyone had expected. Using Soviet-supplied surface-to-air missiles and tactics developed specifically for B-52s, they shot down 34 of the giant bombers over those twelve days — the first time B-52s had ever been downed in combat. The wreckage of one B-52 lies where it fell, in Huu Tiep Lake — known as B-52 Lake — in a quiet residential neighborhood in central Hanoi. It is still there today, a rusting monument to that December, visible from the lakeside path. A few minutes away, a small stone marker on the shore of Truc Bach Lake commemorates the spot where John McCain was pulled from the water after being shot down five years earlier, in 1967.

The Paris Peace Accords were signed in January 1973, and US forces withdrew. But the war between north and south continued until April 30, 1975, when North Vietnamese tanks rolled through the gates of the Presidential Palace in Saigon. Vietnam was, after thirty years of almost continuous warfare, finally at peace. Hanoi had survived — battered, heavily bombed, but undefeated.

Reunification and the difficult years (1975 – 1986)

Victory came at an enormous cost, and the years that followed were harder than many Vietnamese had anticipated.

In 1976, the country was officially reunified as the Socialist Republic of Vietnam, with Hanoi confirmed as the capital of the entire nation. After decades of war, the expectation was that peace would bring recovery. Instead, it brought a different kind of struggle.

The United States maintained a strict trade embargo, cutting Vietnam off from Western markets and financial institutions. Relations with China — once an ally — deteriorated sharply and collapsed into a brief but bloody border war in 1979. Vietnam also became entangled in Cambodia, intervening to remove the Khmer Rouge regime and then maintaining a costly military presence there through the 1980s. The country was simultaneously isolated internationally and stretched militarily.

At home, the government applied a Soviet-style centrally planned economy to the whole country — nationalizing businesses, collectivizing agriculture, and setting prices and production targets from Hanoi. It did not work. Inflation soared, food shortages were common, and basic consumer goods were scarce. By the mid-1980s, inflation had reached somewhere between 500 and 700 percent annually. Hanoi in this period was an austere, grey city — the French buildings still standing but fading, the streets quieter than they had been in generations, the economy essentially broken.

It was not a sustainable situation, and everyone knew it.

Doi Moi and Hanoi’s transformation (1986 – present)

The turning point came in December 1986, when the Communist Party convened its Sixth National Congress and launched the Doi Moi reforms — “doi moi” translating roughly as “renovation.” The centrally planned economy was gradually dismantled. Private enterprise was permitted. Foreign investment was welcomed. Farmers were allowed to sell their produce on the open market. Vietnam, in effect, kept its political system and changed its economic one.

The results were dramatic. Within a few years, a country that had been unable to feed itself was exporting rice. Foreign companies began arriving. The US trade embargo was lifted in 1994, and full diplomatic relations between the US and Vietnam were restored in 1995 — a moment that would have seemed almost unimaginable just two decades earlier. Bill Clinton became the first sitting US president to visit Hanoi in 2000, walking the streets of the Old Quarter to scenes of genuine warmth.

Hanoi changed visibly and rapidly. Hotels, restaurants, and businesses opened across the city. The Old Quarter, long faded and neglected, became one of the most visited neighborhoods in Southeast Asia. Foreign travelers arrived in growing numbers, drawn by exactly the layered, complicated history this guide has been tracing — the ancient temples, the colonial buildings, the war sites, all packed into a city that had somehow managed to preserve most of it.

In 2010, Hanoi celebrated the 1,000th anniversary of its founding as Thang Long — a milestone marked by the UNESCO World Heritage designation of the Imperial Citadel, ongoing archaeological excavations that continue to reveal new layers of imperial Hanoi beneath the modern city, and a collective moment of reflection on just how much this place has seen and survived.

Today Hanoi is a city of more than 8 million people, loud, fast-moving, and increasingly modern. New districts are rising on the western fringes, a metro system is slowly taking shape, and the skyline is changing year by year. But the history of Hanoi has a way of surfacing even through all of that — in the tube houses of the Old Quarter, the bullet-pocked walls of a colonial prison, a rusting B-52 in a city-center lake, or the thousand-year-old citadel walls quietly holding their ground between the motorbikes and the coffee shops.

Museums where you can explore Hanoi’s history

Reading about Hanoi’s history is one thing — standing inside a thousand-year-old citadel or walking the corridors of a colonial prison is something else entirely. These are the museums worth visiting if you want to bring the timeline above to life.

Imperial Citadel of Thang Long is the obvious starting point. A UNESCO World Heritage Site since 2010, it covers over a millennium of dynastic history and is still an active archaeological dig — new layers of imperial Hanoi keep surfacing beneath the modern city. (See our guide to the Imperial Citadel of Thang Long.)

Hoa Lo Prison tells two distinct stories in one building: French colonial repression of Vietnamese independence fighters, and the American POW experience during the Vietnam War. It is compact, well-presented, and genuinely affecting. For most foreign visitors, it is the most memorable museum in Hanoi. (See our guide to Hoa Lo Prison.)

Vietnam National Museum of History covers prehistoric Vietnam through to the end of the Nguyen dynasty in 1945. The building itself — a former French colonial research institute — is worth seeing, and the collection is vast. (See our guide to the Vietnam National Museum of History.)

Vietnam Military History Museum has recently moved to a larger site on the outskirts of the city. It covers Vietnamese military history from ancient dynasties through to modern conflicts, with an impressive outdoor display of tanks, aircraft, and artillery. (See our guide to the Vietnam Military History Museum.)

B-52 Victory Museum is small and specialized, focused entirely on the 1972 air campaign. The courtyard contains actual B-52 wreckage, and the exhibits tell the story of how Hanoi’s air defenses brought the bombers down. Worth combining with a visit to B-52 Lake nearby. (See our guide to B-52 Lake.)

Want to go deeper?

Hanoi’s history is just one chapter of a much longer story. For the full picture, our History of Vietnam guide traces the country’s timeline from ancient kingdoms to the present day. And if you want to explore more of Vietnam’s historical sites, landmarks, and cultural heritage, browse our Vietnam history travel guides for everything we have covered so far.

Explore the history of Hanoi with local experiences included

Discover the city through guided historical tours, local neighborhoods, street food, and cultural experiences that give you a deeper understanding of Hanoi beyond the main sights. Hanoi can also be part of a broader Vietnam journey, combining the capital with other regions through a smooth and well-organized itinerary. Fill in the form below and we’ll design your itinerary based on your travel style, timing, and preferences.

This field is hidden when viewing the form
This field is hidden when viewing the form
DD slash MM slash YYYY
Let us know your requirements, wishes and needs.
Experience Hanoi
Book you local experience here!

Questions about Vietnam or need travel tips?

Join Our Facebook Group – Vietnam Experts reply within 1 working day.

About the Author

Scroll to Top

FREE EBOOK
Vietnam Travel Guide​

vietnam free ebook