Dai La was the Chinese-built fortress that, long before Hanoi existed, silently shaped the destiny of Vietnam. Raised on the banks of the Red River by a Tang dynasty general in 866 AD, this walled citadel served as the colonial nerve center of Chinese-occupied northern Vietnam for generations. And yet, without Dai La, there would be no Thang Long. Without Thang Long, there would be no Hanoi as we know it.
This article takes you deep into the forgotten pre-history of Vietnam’s capital, the centuries of Chinese occupation, the strategic brilliance of Dai La’s location, and the extraordinary moment in 1010 when a Vietnamese emperor gazed at this abandoned Chinese stronghold and saw, not a relic of oppression, but the birthplace of a new civilization.
» History of Hanoi: A Thousand-Year Capital’s Epic Journey
What was Dai La, and Why does It matter to Hanoi’s Story?
Its name in Chinese characters (大羅城) carries a precise architectural meaning rooted in ancient East Asian city-planning: in traditional imperial citadel design, a capital was built in three concentric rings, the innermost Tu Cam Thanh (Forbidden Citadel, for the ruler), the middle Kinh Thanh (Imperial City, for the court), and the outermost La Thanh (the great enclosing wall that wrapped the entire urban area, including markets and civilian quarters). “Dai La Thanh” (大羅城) therefore means “The Great Outer Enclosure” – the largest, outermost ring of fortification, built to encompass an entire city rather than merely a palace. The character “La” (羅) carries the sense of a net or all-encompassing embrace, not a dike or embankment. The name describes the scale and architectural function of the fortification, not its hydrological role, though Gao Pian’s earthwork walls did double as flood barriers along the river.
To understand Dai La, you need to understand the geography of the Red River Delta. The low-lying plains of what is now northern Vietnam were among the most fertile, and most dangerous, river landscapes in Southeast Asia. Annual floods from the Red River deposited extraordinary alluvial soil, producing rice harvests that could sustain dense populations. But those same floods were catastrophic if unchecked. The high ground on the western bank of the To Lich and Red rivers, precisely where Dai La was built, offered a rare combination: elevated protection from floods, commanding views across the delta, and proximity to the river trade routes that connected northern Vietnam to southern China.
That geographical logic did not belong to any single dynasty. It was simply the best strategic position in the region. Whoever controlled this high ground on the Red River controlled northern Vietnam. The Chinese understood this for a thousand years. And in 1010, the Vietnamese emperor Ly Thai To understood it just as clearly.
The long shadow of Chinese Rule: From Conquest to Tong Binh
The region the Chinese called Giao Chi (交趾, roughly “Jiaozhi”) became the southernmost frontier of the Chinese imperial world, and its administrative center gradually migrated toward the site of present-day Hanoi.
The Sui dynasty, which briefly reunified China from 581 to 618 AD, made a decisive choice: they moved the administrative capital of their Vietnamese territory to a settlement called Tong Binh (宋平, “Songping”), located in what is now the heart of modern Hanoi. This was not an accident. The Sui strategists had identified the same geographical logic that would later compel Ly Thai To, the elevated, river-flanked position was militarily superior to any alternative in the delta. When the Tang dynasty inherited the Sui’s Vietnam in 618 AD, they kept Tong Binh as their base and, in 679 AD, formally established the Protectorate General to Pacify the South (安南都護府 – An Nam Duhu Fu), widely known as the Protectorate of An Nam, with its seat in Tong Binh.

For nearly three centuries, Tong Binh served as the colonial command post of Chinese An Nam. Tang governors administered the territory, collected tribute, imposed Confucian education, and kept the local Vietnamese population under a cultural pressure that was simultaneously brutal and transformative. Chinese writing, administrative systems, Buddhist temple architecture, and agricultural techniques all took root in this period, laying the cultural soil from which Vietnamese civilization would eventually grow.
Yet Vietnamese resistance never disappeared. The records show repeated uprisings: the Muong people seized Tong Binh and drove out a Tang governor in the early 8th century; Phung Hung (Phùng Hưng) ruled the city autonomously for over a decade before 803 AD. The city was not simply a passive colonial outpost. It was a contested space where two civilizations, Chinese imperial culture and the emerging Vietnamese identity, lived in permanent, productive tension.
| Period | Name of Site | Chinese Administrative Status |
| 111 BC – 39 AD | Giao Chi (Jiaozhi) | Han commandery |
| 40 – 602 AD | Giao Chi (various) | Fragmented; Vietnamese revolts (Trung Sisters 40 AD) |
| 602 – 618 AD | Tong Binh | Sui dynasty establishes new administrative capital |
| 618 – 679 AD | Tong Binh | Tang dynasty controls; growing urbanization |
| 679 – 866 AD | Tong Binh / La Thanh | Tang Protectorate of An Nam established (679 AD) |
| 866 – 938 AD | Dai La | Rebuilt and renamed by Gao Pian; strongest fortress period |
| 938 – 968 AD | Dai La (empty) | Ngo Quyen defeats Southern Han; rules from Co Loa |
| 968 – 1009 AD | Dai La (vacant as capital) | Dinh and Early Le dynasties rule from Hoa Lu |
| 1010 AD | Thang Long | Ly Thai To relocates capital; Dai La reborn as Vietnamese |
How did Gao Pian build Dai La, and What made It so formidable?
The fortification he erected was no temporary garrison. It was a carefully engineered capital city, designed to last.
The backstory is vivid. By the mid-9th century, the Tang dynasty was weakening, and opportunistic neighbors sensed it. The kingdom of Nanzhao, a powerful state based in what is now Yunnan, southern China, launched a massive invasion of An Nam. In 863 AD, Nanzhao forces captured La Thanh (the precursor settlement to Dai La) and held it, plundering the city and killing or enslaving a large portion of the population. It was a catastrophe that exposed the vulnerability of Chinese control in Vietnam.
The Tang court responded by appointing Gao Pian, a brilliant general who had already proven himself against northern enemies, as the new military governor of An Nam. Gao Pian recaptured La Thanh in 866, expelled the Nanzhao forces, and immediately set about ensuring it could never fall so easily again. He rebuilt the fortress from its foundations, calling the newly fortified city Dai La, the “Great Outer Enclosure”, the outermost and largest ring of fortification surrounding the entire urban area.
Historical sources describe the physical scale of Gao Pian’s construction: the walls of Dai La rose to approximately 7.8 metres high, with a base width of similar dimensions and a total perimeter of roughly 4,500 metres, enclosing a substantial urban area by any 9th-century standard. Within these walls, Gao Pian built administrative halls, residences, waterways, and a sophisticated drainage system to manage the river floods that annually threatened the delta. He was not merely a soldier; archaeological evidence and Chinese records suggest he was also a capable urban planner who applied the Chinese cosmological planning concept of the Magic Square (based on a 9×9 Buddhist mandala grid) to the layout of the city, a spatial logic that Emperor Ly Cong Uan would later inherit and adapt.

There is a famous legend attached to Gao Pian’s construction that reveals how even the Chinese colonizers recognized the spiritual power of this land. The account is recorded in two great medieval Vietnamese literary collections, Linh Nam Chich Quai (Wonders Plucked from the Dust of Linh Nam) and Viet Dien U Linh Tap (Spirits of the Viet Realm), not in the Edict on the Transfer of the Capital, which is a short political and philosophical text of roughly 214 Chinese characters. According to these chronicles, during the construction of Dai La, as Gao Pian was inspecting the eastern gate of the new citadel one morning, a great storm arose: five-colored clouds billowed up from the earth and a dazzling light filled the sky. Within the clouds appeared a spirit wearing a red-flower crown, purple robes, and red shoes, hovering above the ground, this was Long Do (龍肚, “Navel of the Dragon”), the primal earth-spirit and guardian deity of the Red River Delta. Gao Pian, shaken by the apparition, reportedly acknowledged the indomitable spiritual force of this land. The episode is often linked to the founding of Bach Ma Temple (Temple of the White Horse), the oldest of Thang Long’s four guardian shrines, located at 76 Hang Buom Street, Hoan Kiem district, which enshrines Long Do as the Thanh Hoang (City God) of the Eastern Quarter. This temple was formally established during the Dai La period (866 AD) and rebuilt by Ly Thai To in 1010 when he moved the capital to Thang Long. Today it serves as the Tran Dong (“Eastern Guardian”) of the Thang Long Tu Tran, the Four Sacred Shrines protecting the four cardinal directions of the ancient capital.
Insider tip from our volunteers:When you visit the Thang Long Imperial Citadel today, the underground archaeological level, accessible beneath the Doan Mon gate area at 18 Hoang Dieu Street, contains wells and structural remains that date to the Dai La period. Most visitors rush through this section, but our guides love stopping here to point out the actual soil layers from the 9th century. Running your eyes along that stratigraphic column is the closest you can get to touching Gao Pian’s city.

Why did Vietnam’s First Independent Rulers ignore Dai La?
Ngo Quyen, the general who shattered the Southern Han forces with iron-tipped wooden stakes planted in the Bach Dang River estuary, had every geographical reason to move his new court to Dai La. The fortress was the largest urban infrastructure in the country. Its location was strategically superior to any alternative. And yet he chose Co Loa, an ancient circular citadel north of modern Hanoi, originally built in the 3rd century BC, as his capital. The choice was probably symbolic: Co Loa was associated with the legendary Au Lac kingdom, invoking pre-Chinese Vietnamese identity rather than the tainted infrastructure of the colonizers.
The period that followed Ngo Quyen’s death in 944 AD was the so-called Anarchy of the Twelve Warlords (Loan Muoi Hai Su Quan, 944–968 AD), a chaotic civil war that fragmented the newly liberated territory into competing fiefdoms. Only with the rise of Dinh Bo Linh, who defeated the warlords and established the Dinh dynasty in 968 AD, did a unified Vietnamese state re-emerge. Dinh Bo Linh named his kingdom Dai Co Viet and chose Hoa Lu, a naturally fortified valley in what is now Ninh Binh province, about 100 km south of Hanoi, as his capital.
The logic of Hoa Lu was the logic of survival. The Dinh and the subsequent Early Le dynasty ruled from a landscape ringed by dramatic limestone karst mountains that created natural defensive walls. In an era when the nascent Vietnamese state still feared Chinese reconquest, and had real enemies, including the powerful Song dynasty to the north, a mountain fortress was safer than an open river plain. Hoa Lu was the right capital for a kingdom still fighting to exist.
But as the 10th century gave way to the 11th, the strategic calculus changed. Vietnam had proved it could defend itself. The Song dynasty, preoccupied with other threats, had recognized Vietnamese autonomy. What the country now needed was not a defensive mountain stronghold but a prosperous, centrally located administrative capital capable of governing a growing population and projecting confidence. For that purpose, Hoa Lu, beautiful but hemmed in by mountains, flood-prone in its valley position, and geographically peripheral, was inadequate. The empty fortress of Dai La, waiting on its elevated position above the Red River Delta, had never stopped being the obvious answer.
What did Ly Thai To see in Dai La that Others had Missed?
Ly Cong Uan had come to power in 1009, succeeding the decadent last ruler of the Early Le dynasty. Born in 974 AD in Co Phap (modern Bac Ninh province), he had been raised in Buddhist monasteries and educated to a high standard in both Vietnamese and Chinese classical learning. He was, in every sense, a product of the cultural synthesis that the Dai La / Tong Binh centuries had produced: a Vietnamese ruler who could think in Chinese administrative categories while feeling in Vietnamese spiritual ones.
In the Edict, Ly Cong Uan addressed the problem of Hoa Lu directly:
“Hoa Lu is a damp and narrow place. The power of the dynasty cannot be prolonged, the population cannot be multiplied, and all things cannot be prosperous and thriving there.”
His case for Dai La was equally direct. He described the site as occupying the “navel of heaven and earth” (rung thi thien dia), a cosmological claim grounded in observable geography: the site sat at the confluence of the To Lich and Red rivers, sheltered from northern winds by gentle hills, open to the fertile delta to the south, and positioned at the natural center of the communication networks linking northern Vietnam’s population centers. He specifically praised the work of Gao Pian (“Cao Vuong”), noting that the Tang general had recognized the same qualities in this land.

Then comes the most famous passage in the Edict: the legend of the dragon. As Ly Cong Uan’s royal flotilla approached the Dai La fortress by river, he reportedly saw a golden dragon rise into the sky above the city. He took this as a heavenly omen confirming his choice, and renamed the city Thang Long – “Rising Dragon” (or in some translations, “Ascending Dragon” or “Soaring Dragon”). Whether one reads this as literal miracle, deliberate political symbolism, or the account of a genuinely moved man seeing something extraordinary at an extraordinary moment, the name stuck. Thang Long it was, from 1010 onwards.
The Edict concludes with a direct instruction:
“I desire to take advantage of the auspicious location of this land to establish the capital there, so as to plan for the basis of the dynasty for ten thousand generations and the thriving and prospering of the people.”
Those ten thousand generations were, of course, ambition rather than prophecy. But one thousand years later, the city Ly Thai To founded on the bones of Dai La is still the capital of Vietnam. His geographic instinct was not wrong.
The Physical Transformation: From Dai La to Thang Long
The transformation was not a demolition but an absorption: the bones of Dai La became the skeleton of Thang Long.
Ly Thai To ordered the construction of a three-layered citadel system that would define Thang Long’s layout for centuries. At the center was the Cam Thanh (Forbidden Citadel, or inner palace), housing the royal family’s private quarters. Around it was the Hoang Thanh (Imperial Citadel), containing government offices, audience halls, and administrative buildings. The outermost ring was the Dai La Thanh, significantly, they kept Gao Pian’s old outer fortification walls and gave them a new name, embedding the Chinese fortress directly into the Vietnamese city’s urban structure. The name Dai La did not disappear; it became the outermost defensive layer of the Vietnamese capital, repurposed rather than erased.

Construction of the initial citadel complex was essentially complete by 1011, a remarkable speed that suggests Gao Pian’s existing infrastructure provided a substantial foundation to build upon rather than a blank site. Ly Thai To also ordered the construction of major Buddhist temples, most notably the One Pillar Pagoda area and temples near West Lake, establishing the spiritual topography of the new capital alongside its administrative one.
The city that emerged was consciously designed as a Vietnamese statement of independence and cultural sophistication. While it borrowed the concentric-citadel layout from Chinese imperial city planning, the specific spatial arrangements, the Buddhist religious complexes, and the integration of the Red River and To Lich River waterways into the urban fabric gave Thang Long a distinctive Southeast Asian character that set it apart from any Chinese model. The citadel of Dai La had been a colonial outpost. Thang Long was a civilization’s declaration of arrival.

A note from the Hanoi Free Private Tour Guide team: One of the most moving experiences we offer is standing with guests at the 18 Hoang Dieu archaeological site within the Thang Long Imperial Citadel. In the underground excavations, you can see, literally see, in the soil layers, the transition from the Dai La period (9th century ceramics, wells, structural foundations) to the Ly dynasty layer immediately above it. It’s not history in a book. It’s history in the ground beneath your feet.
What Traces of Dai La survive in Hanoi today?
The 18 Hoang Dieu Archaeological Site, within the Thang Long Imperial Citadel (UNESCO World Heritage Site since 2010), represents the single most important archaeological window into the Dai La period. Excavations begun in 2003, when construction of the new National Assembly building accidentally broke into ancient foundations, revealed an extraordinary layered record of Hanoi’s pre-history. The lowest excavation levels, corresponding to the 7th-9th centuries, contain ceramic fragments, structural foundations, drainage systems, and ancient wells consistent with Gao Pian’s Dai La construction. Two of the wells uncovered in the archaeological dig are believed to date specifically to the Dai La era.
Bach Ma Temple (Temple of the White Horse) at 76 Hang Buom Street, Hoan Kiem district, the oldest of Hanoi’s four guardian temples and the principal shrine of the Long Do deity, traces its origin directly to the Dai La period. Historical sources, including Viet Dien U Linh Tap, record that the temple was first established during Gao Pian’s construction of Dai La (866 AD), making it a physical survivor of the Chinese-era fortress. Ly Thai To rebuilt and formally consecrated it in 1010 as the Tran Dong (“Eastern Guardian”) of the Thang Long Tu Tran, the Four Sacred Shrines protecting the four cardinal directions of the new capital. Long Do, enshrined here as the Thanh Hoang (City God) of Thang Long, is the same earth-spirit whose apparition reportedly overwhelmed Gao Pian centuries earlier. The hoành phi (horizontal tablet) inside the shrine still reads “Dong Tran Linh Tu”, “Sacred Temple of the Eastern Guardian”. A visit to Bach Ma Temple in the Old Quarter today is, quite literally, a visit to a site that has been sacred since the 9th century.
The To Lich River, now a narrow, heavily urbanized waterway running through the western districts of Hanoi, was the natural western moat of Dai La. Gao Pian’s engineers channeled and reinforced the To Lich as part of the fortress’s defensive water system. Though the river is now vastly reduced from its historical course (French colonial urban development dramatically altered its flow), walking along its banks in the Cau Giay or Dong Da districts means walking along the outer edge of the 9th-century Chinese city.
The Pho Cat Linh area, in the Dong Da district, is believed by historians to correspond roughly to the southern sector of the Dai La fortification, based on the alignment of ancient earthwork remnants and place-name evidence in historical texts. The street names in this area, including references to ancient gates and walls, carry the memory of Gao Pian’s city in their syllables.
| Dai La Period Trace | Location in Modern Hanoi | How to Experience It |
| Archaeological foundations & wells | 18 Hoang Dieu St, Thang Long Imperial Citadel | Underground exhibition; UNESCO site admission ~100,000 VND |
| Den Bach Ma (Long Do shrine) | 76 Hang Buom St, Hoan Kiem (Old Quarter) | Active worship site; oldest of Thang Long’s four guardian temples |
| To Lich River (former western moat) | Cau Giay / Dong Da district waterway | Walk or cycle along the embankment |
| Outer citadel alignment | Cat Linh / Dong Da area streets | Historical walking route with a knowledgeable guide |
| Stratified soil layers | 18 Hoang Dieu excavation display | Most direct visual evidence of Dai La-era occupation |
Why Dai La was the geographical reason Hanoi became Vietnam’s Capital
Consider what the site offered in the 9th century, the 11th century, and still offers today. The elevated western bank of the Red River, protected from the worst annual floods by natural levees and engineered embankments, provided dry, buildable ground in a landscape that was otherwise seasonally inundated. The river system, the Red River to the east, the To Lich to the west, with numerous lakes and ponds acting as natural defenses, created a site that was both naturally protected and supremely connected by water transport to the rest of the delta.
The Red River Delta itself is one of the most fertile agricultural regions in Southeast Asia. Feeding a large population from this base was comparatively easy, which meant that a city here could grow to a size that mountain capitals like Hoa Lu could never support. And the delta’s openness, its flat, navigable terrain, meant that controlling Hanoi meant controlling access to the entire northern half of Vietnam. No army could effectively hold the country without holding this position.
Gao Pian grasped this in 866. Ly Thai To grasped it in 1010. The French grasped it when they made Hanoi the capital of French Indochina in 1902. Ho Chi Minh grasped it when the Democratic Republic of Vietnam declared its independence at Ba Dinh Square in 1945. In each case, different rulers, different ideologies, different centuries, and the same city, on the same high ground, above the same river, for the same reasons.
Dai La was not simply a fortress. It was the geographical logic of Vietnam’s future, written in earth and water and stone thirteen centuries ago.
FAQs: Dai La and the Pre-History of Hanoi
Dai La (大羅城) is best understood through the lens of traditional East Asian imperial city-planning. A classical capital city was built in three concentric rings: the innermost Cam Thanh (Forbidden Citadel, for the ruler), the middle Hoang Thanh (Imperial City, for the court and administration), and the outermost La Thanh (the great enclosing wall that wrapped the entire city, including markets and civilian quarters). “Dai La Thanh” therefore means “The Great Outer Enclosure”, the largest, outermost ring of fortification. The character “La” (羅) conveys a sense of net-like enveloping or all-encompassing encirclement, not a dike or earthwork. Gao Pian’s 866 AD fortress was named for its architectural role as the outermost and largest defensive ring of the entire urban complex, the wall that held everything inside it.
Dai La was built and rebuilt in stages. The site first served as a Chinese administrative center (called Tong Binh) from the Sui dynasty (602 AD) onward. The decisive construction that gave the fortress its final form and its name was carried out by the Tang dynasty military governor Gao Pian (Cao Bien) in 866 AD, after he expelled a Nanzhao invasion that had captured and damaged the earlier settlement. Gao Pian’s reconstruction raised walls to approximately 7.8 metres high with a perimeter of roughly 4,500 metres, making it one of the largest fortified cities in the region at that time.
The early Vietnamese dynasties (Dinh, 968–980 AD, and Early Le, 980–1009 AD) chose Hoa Lu in Ninh Binh because its naturally fortified mountain terrain provided better defense for a fragile, newly independent state still vulnerable to Chinese reconquest. By 1010, the political situation had stabilized enough that defense was less urgent than economic governance. Emperor Ly Thai To chose Dai La precisely because its open, central position in the Red River Delta was better suited to administering and feeding a growing population, advantages Hoa Lu’s confined mountain valley could never offer.
Yes. The Thang Long Imperial Citadel (Hoang Thanh Thang Long), now a UNESCO World Heritage Site located in Ba Dinh district, Hanoi, was built directly on the foundations of Gao Pian’s Dai La fortress. When Ly Thai To established Thang Long in 1010, he incorporated Dai La’s outer walls into the new city as the outermost defensive ring (still called “Dai La Thanh”). The archaeological site at 18 Hoang Dieu Street within the citadel contains stratified remains from the Dai La era (9th century) immediately below the Ly and Tran dynasty layers above.
Dai La and the Deep Logic of Hanoi
Dai La was never simply a Chinese fortress. It was the first chapter of a story that took more than a millennium to reach the city you can walk through today. Built by a Tang dynasty general on the most strategically perfect piece of ground in northern Vietnam, it absorbed the political logic of an entire region, and then waited, through forty years of Vietnamese independence ruled from distant Hoa Lu, for someone confident enough to claim it.
That someone was Ly Thai To, and his decision in 1010 to rename Dai La as Thang Long was one of the hinge moments of Vietnamese history. He did not erase the Chinese fortress. He transformed it, layer by layer, into the foundation of Vietnamese civilization. That act of strategic reclamation, taking the tools of colonization and forging them into instruments of independence, runs like a thread through everything Hanoi has done since.
Today, Dai La lives in the soil beneath the Thang Long Citadel, in the ancient wells at 18 Hoang Dieu, in the name of streets that trace the line of Gao Pian’s walls, and in the very position of the city on its river. To understand Dai La is to understand why Hanoi is where it is, and why, after a thousand years, it is still there.
Article verified by the editorial team of Hanoi Free Private Tour Guide against Vietnamese academic sources, UNESCO documentation (World Heritage List #1328), and the Vietnam National Museum of History records.



