{{short description|Imperial dynasty in Vietnam from 1428 to 1789}} {{for|the earlier Lê dynasty who ruled from 980 to 1009|Early Lê dynasty}} {{Primary sources|date=December 2020}} {{Infobox former country | native_name = {{lang|vi|大越國}}<br/>{{lang|vi|Đại Việt Quốc }} | life_span = 1428–1527<br />1533–1789 | conventional_long_name = Đại Việt | common_name = Lê dynasty | image_flag = | flag_border = | flag = | flag_type = | image_coat = Bình Hải Tướng Quân Chi Ấn.png | symbol_type = The seal "Bình Hải tướng quân chi ấn" (平海將軍之印) of emperor Lê Thái Tông | status = Monarchy, Tributary state | status_text = Internal imperial system within tributary state of China<ref name="britannica"/><ref name="asymmetry"/><ref name="perspectives"/> <!-- Please use the talk page to suggest changes for this field --> *Ming (1428–1644) *Southern Ming (1644–1662) *Qing (1662–1789)<hr> Government in exile (1531–1540) <hr> Rump state under Qing dynasty's protection (1788–1789) | government_type = Absolute monarchy (1428-1527) <hr> Absolute monarchy under hereditary military dictatorship (1533-1788) | era = Early modern | year_start = 1428 | year_end = 1789 | year_exile_start = 1531 | year_exile_end = 1540 | event_start = Coronation of Lê Lợi | date_start = 29 April | event_end = Battle of Ngọc Hồi-Đống Đa | date_end = 30 January | event1 = Mạc Đăng Dung usurped the throne | date_event1 = 15 June 1527 | event2 = Recapture of Đông Kinh | date_event2 = December 1592 | event_pre = Lê Lợi led Lam Sơn rebellion against the Ming Empire | date_pre = 1418–1427 | p1 = Fourth Era of Northern Domination | p2 = Ming Dynasty | s1 = Mạc dynasty{{!}}'''1527:'''<br />Mạc dynasty | s2 = Nguyễn lords{{!}}'''1789:'''<br />Nguyễn lords | s3 = Tây Sơn dynasty{{!}}'''1789:'''<br />Tây Sơn dynasty | image_map = {{Switcher|upright=1.15|frameless| Đại Việt (Dark pink) before 1471|upright=1.15|frameless|Đại Việt (red) during White Elephant War in 1480|upright=1.15|frameless|Restored Lê dynasty (blue) during Lê–Mạc War before 1592|upright=1.15|frameless|Restored Lê dynasty (yellow) under controlled of Trịnh clan during Lê–Mạc War ín 1560|upright=1.15|frameless|Restored Lê dynasty (blue) under controlled of Trịnh clan during Trịnh–Nguyễn War ín 1660|default=1}} | image_map2 = Vietnam in 17th-18th century (orthographic projection).svg | image_map2_caption = Map of Đại Việt in 1770s during Trịnh–Nguyễn War<br>{{legend|#206e24|Lê dynasty's domain under Trịnh's authority}} {{legend|#65dd1f|Nguyễn's domain}} | capital = Đông Kinh (1428–1527 and 1592–1789)<br /> Tây Kinh (temp) (1543–1592) | capital_exile = Xam Neua (1531–1540) | official_languages = Literary Chinese{{efn|The use of the Classical Chinese language in documents and correspondences is distinct from the use of the Chữ Nôm writing system for the Vietnamese language.}} (written)<ref name="Holcombe"/>{{rp|207}}<ref>{{cite book |last=Hannas |first=William C. |date=1997 |title=Asia's Orthographic Dilemma |publisher=University of Hawaii Press |isbn=978-0-8248-1892-0 |page=83 |quote=An exception was during the brief Hồ dynasty (1400–07), when Chinese was abolished and chữ Nôm became the official script, but the subsequent Chinese invasion and twenty-year occupation put an end to that (Helmut Martin 1982:34).}}</ref> | common_languages = Middle Vietnamese{{br}}Other local languages | religion = Vietnamese folk religion, Confucianism (state ideology),<ref>{{cite book|title=Religion of the World: A Comprehensive Encyclopedia of beliefs and practices|url=https://books.google.com/books?id=v2yiyLLOj88C&pg=PA426|access-date=13 April 2014|page=426|author=J. Gordon Melton, Martin Baumann|date = 21 September 2010| publisher=Abc-Clio |isbn = 9781598842043}}</ref> Buddhism, Taoism, Islam,<ref>{{harvnb|Taouti|1985|pp=197–198}}</ref> Roman Catholicism | currency = Copper-alloy and zinc cash coins ({{lang|zh|文}}) | leader1 = Lê Thái Tổ | year_leader1 = 1428–1433 (first) | leader2 = Lê Cung Hoàng | year_leader2 = 1522–1527 | leader3 = Lê Trang Tông | year_leader3 = 1533–1548 | leader4 = Lê Chiêu Thống | year_leader4 = 1786–1789 (last) | title_leader = Emperor (Hoàng đế) | title_deputy = Regents and Viceroys (de facto rulers) | deputy1 = Nguyễn Kim | year_deputy1 = 1533–1545 (first) | deputy2 = Trịnh lords | year_deputy2 = 1545–1787 | deputy3 = Nguyễn Huệ | year_deputy3 = 1786–1788 (last) | stat_year2 = 1490 | stat_pop2 = 7,700,000 | ref_pop2 = <ref>{{Harvnb|Đại Việt's Office of History|1993|pp=509.}}</ref> | footnotes = | today = Vietnam<br />China<br />Laos<br />Cambodia }} {{Royal house | surname = Lê | estates = Thăng Long | country = Kingdom of Đại Việt (Vietnam) | parent house = | titles = {{Unbulleted list|Emperor of Đại Việt/King of Đại Việt<br>Titles given by the Chinese empires:<br> King of Giao Chỉ|King of Annam}} | founder = Lê Lợi | final ruler = Lê Chiêu Thống | current head = | founding year = 15th century | deposition = 1789 | traditions = }} The '''Lê dynasty''', also known in historiography as the '''Later Lê dynasty''' ({{langx|vi|Nhà Hậu Lê}} or {{lang|vi|Triều Hậu Lê}}, {{Chuhan|朝後黎}}, {{Chunom|茹後黎}}{{efn|Especially when referring to the family.}}), was the longest-ruling Vietnamese dynasty, having ruled Đại Việt ({{Chuhan|大越}}) from 1428 to 1789 with an interregnum between 1527 and 1533. The Lê dynasty is divided into two historical periods: the Initial Lê dynasty ({{langx|vi|triều Lê sơ}} or {{lang|vi|nhà Lê Sơ}}, {{Chuhan|朝黎初}}, {{Chunom|茹黎初}}; 1428–1527) before the usurpation by the Mạc dynasty, in which emperors ruled in their own right, and the Revival Lê dynasty ({{langx|vi|triều Lê Trung hưng}} or {{lang|vi|nhà Lê Trung hưng}}, {{Chuhan|朝黎中興}}, {{Chunom|茹黎中興}}; 1533–1789), in which the emperors were figures who reigned under the auspices of the powerful Trịnh family. The Revival Lê dynasty was marked by two lengthy civil wars: the Lê–Mạc War (1533–1592) in which two dynasties battled for legitimacy in northern Vietnam and the Trịnh–Nguyễn Wars (1627–1672, 1774–1777) between the Trịnh lords in North and the Nguyễn lords of the South.

The dynasty officially began in 1428 with the enthronement of Lê Lợi after he drove the Ming Chinese army from Vietnam. The dynasty reached its peak during the reign of Lê Thánh Tông and declined after his death in 1497. In 1527, the Mạc dynasty usurped the throne; when the Lê dynasty was restored in 1533, the Mạc fled to the far north and continued to claim the throne during the period known as Southern and Northern Dynasties. The restored Lê emperors held no real power, and by the time the Mạc dynasty was finally eradicated in 1677, actual power lay in the hands of the Trịnh lords in the North and Nguyễn lords in the South, both ruling in the name of the Lê emperor while fighting each other. The Lê dynasty officially ended in 1789, when the peasant uprising of the Tây Sơn brothers defeated both the Trịnh and the Nguyễn, ironically in order to restore power to the Lê dynasty.

The Lê dynasty continued the ''Nam tiến'' expansion of Vietnam's borders southwards through the domination of the Kingdom of Champa and expedition into today Laos and Myanmar, nearly reaching Vietnam's modern borders by the time of the Tây Sơn uprising. It also saw massive changes to Vietnamese society: the previously Buddhist state became Confucian after the preceding 20 years of Ming rule. The Lê emperors instituted many changes modeled after the Chinese system, including the civil service and laws. Their long-lasting rule was attributed to the popularity of the early emperors. Lê Lợi's liberation of the country from 20 years of Ming rule and Lê Thánh Tông's bringing the country into a golden age was well-remembered by the people. Even though the restored Lê emperors' rule was marked by civil strife and constant peasant uprisings, few dared to openly challenge their power for fear of losing popular support. The Lê dynasty also was the period Vietnam saw the coming of Western Europeans and Christianity in early 16th-century.<ref>{{cite web |url=http://sb.od.org/index.php?supp_page=Vietnam&supp_lang=en&PHPSESSID=0594392cbfd861c6de7e2afb29eef8a5 |title=Open Doors International : Vietnam<!-- Bot generated title --> |access-date=2007-03-29 |archive-url=https://web.archive.org/web/20071214023952/http://sb.od.org/index.php?supp_page=Vietnam&supp_lang=en&PHPSESSID=4a0ea20c665fb7e457ef6c0c2710a90e |archive-date=2007-12-14 |url-status=dead }}</ref>

{{TOC limit|3}}

== History ==

===Lam Sơn uprising (1418–1427)=== {{main|Lam Sơn uprising}}

[[File:Bình Ngô đại cáo 平吳大誥.png|left|thumb|194x194px|The first page of ''Bình Ngô đại cáo'' (平吳大誥), a proclamation hymn of Vietnamese independence from the Ming dynasty in 1428]] During the Fourth Chinese domination of Vietnam, Lê Lợi led an uprising against the rule of the Ming dynasty in 1418,<ref>Asia: Local Studies / Global Themes – Volume 3 Hue-Tam Ho Tai – 2001 – Page 91 "... an anti-Ming resistance — the Lam Son uprising, begun in 1418 — and the two men became the movement's key exponents. As emperor (1428–33), Le Loi would retain Nguyen Trai as his chief official; thereafter, their relationship was made ..."</ref><ref>Lonely Planet Vietnam 10 -Nick Ray, Yu-Mei Balasingamchow, Iain Stewart – 2009 Page 30 "In 1418 wealthy philanthropist Le Loi sparked the Lam Son Uprising by refusing to serve as an official for the Chinese Ming dynasty. By 1428, local rebellions had erupted in several regions and Le Loi travelled the countryside to rally ..."</ref><ref>H. K. Chang – From Movable Type Printing to the World Wide Web 2007 Page 128 "However, in 1418, another leader, Lê Lợi, staged an uprising, which led in 1428 to the establishment of the Lê dynasty, from which time Vietnam broke free of China and became independent".</ref><ref>Ngọc Đĩnh Vũ ''Hào kiệt Lam Sơn: trường thiên tiểu thuyết lịch sử'' Volume 1 – 2003 "The Lam Sơn uprising, 1418–1428, is one of the greatest historical events in Vietnamese history, when a small country tried to gain independence from the firm grab of a bigger neighbor".</ref><ref>Laurel Kendall ''Vietnam: Journeys of Body, Mind, and Spirit'' 2003– Page 27 "Le Loi led a successful ten-year (1418–1428) uprising against the Chinese. According to legend, Le Loi returned the sword that gave him victory to Hoan Kiem Lake (now the center of Hanoi), where it was retrieved by a giant turtle".</ref><ref>{{cite thesis |last=Low |first=Joey |date=Spring 2018 |title=MING CHINA IN VIETNAM AND VALOIS FRANCE IN ITALY: POLITICAL ACTORS AND PUBLIC NARRATIVES OF INVASION AND OCCUPATION IN THE PREMODERN WORLD |type=A Thesis Presented to the Faculty of California State University, Fullerton ____________________________________ In Partial Fulfillment of the Requirements for the Degree Master of Arts in History |chapter= |publisher= |docket= |oclc= |url=https://scholarworks.calstate.edu/downloads/1r66j206t |pages=1–153|access-date=}}</ref> after resistance forces of two Trần dynasty princes Trần Ngỗi and Trần Quý Khoáng were crushed by the Ming army. He joined a secret Taoist swearing commentary in Lũng Nhai, Thanh Hoá in winter 1416, with other 18 men, who all swore they would fight against the Ming Chinese and restore Vietnamese independence and sovereignty.<ref>Chan Chung Jin, p. 149</ref>

The Lam Sơn ("blue mountain") campaign began on the day after Tết (Lunar New Year) in February 1418.<ref>''Le Loi''. The Encycloaedia Britannica. Micropedia, Volume VI, 15th Edition. {{ISBN|0-85229-339-9}}</ref> In November 1424, the Lam Sơn captured the Nghệ An citadel in a surprise attack from their base in Laos, leading to the retreat of the ethnic-Vietnamese Ming commander Lương Nhữ Hốt (Liang Juihu) to the north. From their new base in high-density population Nghệ An, Lê Lợi's rebel forces captured the territory in modern-day central Vietnam, from Thanh Hoá to Đà Nẵng.<ref>Trần Trọng Kim, Việt Nam sử lược, vol. I, part. III, sec. XIV(1418–1427)</ref> By August 1426, the Lam Sơn rebellion launched an offensive to the north with new forces against a fresh Ming army commanded by Wang Tong in charge of defending northern Vietnam.<ref>''History of Ming'', 王通传</ref>{{better source needed|date=May 2020}} The new Ming ruler, the Xuande Emperor, wished to end the war with Vietnam, but his advisors urged one more effort to subdue the rebellious province. Consequently, the Ming sent a large army of approximately 100,000 men to Vietnam.<ref name="Kim">{{cite book|author=Trần Trọng Kim|author-link=Trần Trọng Kim|year=2005|title=Việt Nam sử lược|publisher=Ho Chi Minh City General Publishing House|place=Ho Chi Minh City|language=vi|pages=212–213}}</ref> After the pivotal Battle of Tốt Động – Chúc Động in October 1426, the Ming dynasty withdrew by 1428.<ref name="Tsai1996">{{cite book|author=Shih-shan Henry Tsai|title=The Eunuchs in the Ming Dynasty|url=https://books.google.com/books?id=Ka6jNJcX_ygC&pg=PA15|year=1996|publisher=SUNY Press|isbn=978-0-7914-2687-6|pages=15–}}</ref> By early 1427, Lê Lợi's forces had controlled most of northern Vietnam, advancing as far as the southern tip of modern-day Guangxi. Following negotiations with the Ming, Lê Lợi selected Trần Cảo as a puppet king of Annam who nominally ruled from 1426 to 1428.<ref>Ngô Sĩ Liên 1993, University of Tokyo's Toyo Cultural Research Institute, p,546-548</ref><ref name="Tsai1996" />

===Early period (1428–1527)=== ====Lê Lợi (1428–1433)==== {{Main|Lê Lợi}}

In 1428, Lê Lợi established the Lê dynasty and took the reign name Lê Thái Tổ, receiving recognition and formal protection from the Ming dynasty in a tributary relationship.<ref name="britannica"/><ref name="asymmetry"/><ref name="perspectives"/><ref name="transition"/>In 1429, he introduced the Thuận Thiên code, largely based on the Tang Code, with severe charges for gambling, bribery and corruption.<ref>Việt Nam sử lược, p. 96.</ref><ref>Ngô Sĩ Liên 1993, pp 361.</ref> Lê Lợi granted a land reform in 1429 that took lands from people who collaborated with the Chinese and distributed them among landless peasants and soldiers. He distrusted many of his former generals, resulting in the 1430 execution of the two generals Trần Nguyên Hãn and Phạm Văn Xảo that is considered by Vietnamese historians as a political purge.<ref>[http://www.bvd-vn.de/index.php/vn/van-hoa/710-chanh-s-nguy-n-tr-c-va-bai-van-sach-thi-dinh-mang-l-i-danh-hi-u-tr-ng-nguyen-c-a-ong ''"...Our Thái tổ majesty just had retaken the Tianxia, the country was not recovered, and Hãn, Xảo wanted to conspired against the court..."'', Nguyễn Trực 1441]</ref>{{Infobox Vietnamese name|image=|imgwidth=|caption=|title=Hậu Lê triều|vie=|qn=nhà Hậu Lê<br />Hậu Lê triều|hn=茹後黎|chuhan=後黎朝|lqn=}}Lê Lợi's reign would be short-lived, as he died in 1433.<ref name="worldcat">{{cite web|publisher=worldcat|title=Lê, Lợi King of Vietnam 1385–1433|url=http://www.worldcat.org/identities/lccn-n90659665/}}</ref> [[File:Quelamnguchegdgd.jpg|190x190px|thumb|right|''Quế Lâm Ngự Chế'', carved texts by Emperor Lê Thái Tông commemorating a campaign against rebels in Sơn La, 1440.]]

==== Lê Thái Tông (ruled 1433–1442) ==== {{main|Lê Thái Tông}}

{{History of Vietnam}} Lê Thái Tông ({{Vi-nom|黎太宗}}, ruled 1433–1442)<ref name="CK">Theobald</ref> was the official heir to Lê Lợi. However, he was just eleven, so a close friend of Lê Lợi, Lê Sát, assumed the regency of the kingdom. Not long after he assumed the official title as Emperor of Vietnam in 1438, Lê Thái Tông accused Lê Sát of abuse of power and had him executed. In December 1435, Thái Tông ordered general Tư Mã Tây to subdue the Tày chief Cầm Quý who having a ten-thousand army of raiders in the northwest region.<ref>Đại Việt sử ký toàn thư, Ngô Sĩ Liên, 1993, volume XI, p. 391</ref>

In January 1436, the emperor ordered to make roads and canals from northwest region to the capital for showing the superior power of the Imperial court to the local tribes men.<ref>Đại Việt sử ký toàn thư, Ngô Sĩ Liên, 1993, volume XI, p. 392</ref> From 1437 to 1441, tribe men from Ai-Lao crossed the Annamite Range, raided in Thanh Hóa and southern Hưng Hóa (now Sơn La province) with the help of the local raiders led by Nghiễm Sinh Tượng were suppressed by the Imperial army.<ref>Đại Việt sử ký toàn thư, Ngô Sĩ Liên, 1993, volume XI, p. 397–403.</ref> The Lê dynasty started treating hostilely to the ethnic minorities in western region. On a stone monument that was carved in 1439 under Thái Tông's reign said ''"Bồn-Man'' (Muang Phuan) ''barbarians were against our assimilation, they need to be exterminated to their roots, and with the Sơn-Man ''(Mường and Chứt)'' barbaric raiders, we need to eliminated all of them,..."''<ref>{{cite web|url=https://ereka.vn/post/nguoi-ho-trong-con-mat-nguoi-viet-52790225987261996|title=Nomadic people in Vietnamese history|author=ereka.vn|date= 13 April 2018}}</ref>

According to a MạcTrịnh version of Complete Annals of Đại Việt, the new Emperor had a weakness for women. He had many wives, and he discarded one favorite after another. The most prominent scandal was his affair with Nguyễn Thị Lộ, the wife of his father's chief advisor Nguyễn Trãi. The affair started early in 1442 and continued when the Emperor traveled to the home of Nguyễn Trãi, who was venerated as a great Confucian scholar.{{Citation needed|date=January 2025}}

Shortly after the Emperor left Trãi's home to continue his tour of the western province, he fell ill and died. At the time the powerful nobles in the court argued that the Emperor had been poisoned to death. Nguyễn Trãi was executed as were his three entire relations, the normal punishment for treason at that time.{{Citation needed|date=January 2025}}

==== Lê Nhân Tông (ruled 1442–1459) ==== {{main|Lê Nhân Tông}}

With the Emperor's sudden death at a young age, his infant heir Bang Co was made emperor - although he was the second son of his father, his older brother Nghi Dân had been officially passed over due to his mother's low social status. Bang Co assumed the throne as Lê Nhân Tông (黎仁宗)<ref name=CK/> but the real rulers were Trịnh Khả and the child's mother, the young Empress Nguyễn Thị Anh. The next 17 years were good years for Vietnam – there were no great troubles either internally or externally. Two things of note occurred: first, the Vietnamese sent an army south to attack the Champa kingdom in 1446; second, the Dowager Empress ordered the execution of Trịnh Khả, for reasons lost to history, in 1451. In 1453 at the age of twelve, Lê Nhân Tông was formally given the title of Emperor. This was unusual as according to custom, youths could not ascend the throne till the age of 16. It may have been done to remove Nguyễn Thi Anh from power, but if that was the reason, it failed and the Dowager Empress still controlled the government up until a coup in 1459.{{Citation needed|date=January 2025}}

In 1459, Lê Nhân Tông's older brother, Nghi Dân, plotted with a group of followers to kill the Emperor. On October 28, the plotters with some 100 "shiftless men" infiltrated the palace and murdered the Emperor (he was just 18). The next day, facing certain execution the Dowager Empress committed suicide. The rule of Nghi Dân was brief, and he was never officially recognized as a sovereign by later Vietnamese historians. Revolts against his rule started almost immediately and the second revolt, occurring on June 24, 1460, succeeded. The rebels, led by Lê Lợi's surviving former advisors Nguyễn Xí and Dinh Liêt captured and killed Nghi Dân along with his followers. The rebels then selected the youngest son of Lê Thái Tông to be the new Emperor, who they proclaimed to be Lê Thánh Tông.

==== Lê Thánh Tông (ruled 1460–1497) ==== {{main|Lê Thánh Tông}}

Quang Thuận Hoàng Đế (光順皇帝),<ref name=CK/> whose reign was named Hồng Đức Thịnh Thế (洪德之盛治, "Prosperous reign of Hồng Đức"), instituted a wide range of government reforms, legal reforms, and land reforms. He restarted the examination system for selecting men for important government positions. He reduced the power of the noble families and reduced the degree of corruption in the government. He built temples to Confucius throughout the provinces of Đại Việt. In nearly all respects, his reforms mirrored those of the Ming dynasty. Thánh Tông was strongly influenced by his Confucian teachers and he resolved to make Việt Nam more like the Ming dynasty with its Neo-Confucianist philosophy and the key idea that the government should be run by men of noble character as opposed to men from noble families. This meant that he needed to take power away from the ruling families (mostly from Thanh Hóa province) and give power to the scholars who did well on the official examinations. The first step on this path was to revive the examination process, which had continued sporadically in the 1450s. The first examination was held in 1463 and, as expected, the top scholars were men from elsewhere- usually from the river delta surrounding the capital, not from Thanh Hóa.{{Citation needed|date=May 2020}}In 1467, Lê Thánh Tông changed the name of the state to "Thiên Nam" (Heavenly South) to make the parallel position with their northern neighbor and shared classical culture more explicit.<ref>{{cite book |last1=Kathlene Baldanza |title=Ming China and Vietnam |date=2016 |publisher=Cambridge University Press |isbn=9781316440551 |pages=83–84}}</ref> right|thumb|Administrative division of Lê dynasty and number of armed forces stationed in each regions in 1471 [[File:Phân chia hành chính của nhà Lê Sơ dưới sự trị vì Hoàng đế Lê Tháng Tông (~1475).png|right|thumb| Vietnamese territory (Dark red) and temporary occupied territory (west) & southern vassal states (light red) during invasion of Lan Xang. ]]

Thánh Tông encouraged the spread of Confucian values throughout Vietnam by having "temples of literature" built in all the provinces. There, Confucius was venerated and classic works on Confucianism could be found. He also halted the building of any new Buddhist or Taoist temples and ordered that monks were not to be allowed to purchase any new land.{{Citation needed|date=May 2020}}

Lê Thánh Tông introduced reforms designed to replace the Thanh Hoá oligarchy of Dai Viet's southern region with a corps of bureaucrats selected through the Confucian civil service examinations.<ref>{{cite book |last=Baldanza|first=Kathlene|title=Ming China and Vietnam: Negotiating Borders in Early Modern Asia|year=2016|publisher=Cambridge University Press|page=84}}</ref> Following the Chinese model, he divided the government into six ministries: Finance, Rites, Justice, Personnel, Army, and Public Works. Nine grades of rank were set up for both the civil administration and the military. A Board of Censors was set up with imperial authority to monitor governmental officials and reported exclusively to the emperor. However, governmental authority did not extend all the way to the village level. The villages were ruled by their own councils in Vietnam.<ref>''Vietnam, Trials and Tribulations of a Nation'' D. R. SarDesai, ppg 35–37, 1988</ref>

With the death of Nguyễn Xí in 1465, the noble families from Thanh Hóa province lost their leader. Soon they were mostly relegated to secondary positions in the new Confucian government of Thánh Tông. However, they still retained control over Vietnam's armies as the old general, Đinh Liệt, was still in command of the army.{{Citation needed|date=May 2020}} In the same year, Vietnam was attacked by Ryukyuan pirates from the northeast. This was dealt with by sending additional forces to the north to fight the pirates. Thánh Tông also sent a military force to the west to subdue the Ai-lao mountain tribes that was raiding the northwest border.{{Citation needed|date=May 2020}}In 1469, all of Vietnam was mapped and a full census was taken, listing all the villages in the Empire. Around this time the country was divided into 13 dao (provinces). Each was administrated by a Governor, Judge, and the local army commander. The emperor Thánh Tông also ordered that a new census should be taken every six years. Other public works that were undertaken included building and repair of granaries, using the army to rebuild and repair irrigation systems after floods, and sending out doctors to areas afflicted by outbreaks of disease. Even though the emperor, at 25, was relatively young, he had already restored Vietnam's stability, which was a marked contrast from the turbulent times marking the reigns of the two emperors before him. 180px|thumb|right|Imperial seal of the Lê dynasty, 1479 version.

Article 344 of the Nguyen dynasty code and Article 305 of the Le dynasty code both forbade self-castration and castration of Vietnamese men.<ref>{{cite book |last=Pastoetter, Ph.D. |first=Jakob |others= Updates by J. Pastoetter; contributor Beldina Opiyo-Omolo |author-link= |date=2004 |title=The Continuum Complete International Encyclopedia of Sexuality |chapter-url=https://books.google.com/books?id=dciuj1-F3fYC&dq=castration+le+code+vietnam&pg=PA1350 |location= |publisher=A&C Black |editor1-last= Francoeur|editor1-first= Robert T. |editor2-last=Noonan |editor2-first=Raymond J. |page= 1350|edition=illustrated, revised|isbn=0826414885|chapter=Vietnam (Cộng hoà Xã hội chủ nghĩa Việt Nam) (Socialist Republic of Vietnam) |quote=D. Homosexuality and Vietnamese Law Proschan (Aronson 1999; “Frank” 2000) writes that neither homosexual identity nor behaviors had ... a prohibition of castration and selfcastration (Le Code, Article 305; Nguyen Code, Article 344).}}</ref> Self-castration of Vietnamese men was banned by Lê Thánh Tông, the emperor, in 1464.<ref>{{cite book |last= Nguy~en |first=Ngọg Huy |author-link= |date=1987 |title=The Lê Code: Law in Traditional Vietnam : a Comparative Sino-Vietnamese Legal Study with Historical-juridical Analysis and Annotations, Volume 2 |series=The Lê Code: Law in Traditional Vietnam : a Comparative Sino-Vietnamese Legal Study with Historical-juridical Analysis and Annotations, Văn Tài Tạ|url=https://books.google.com/books?id=smCKAAAAMAAJ&q=castration+le+code+vietnam |location= |publisher=Ohio University Press |page=174 |isbn=0821406302|quote=Law in Traditional Vietnam : a Comparative Sino-Vietnamese Legal Study with Historical-juridical Analysis and Annotations Ngọg Huy Nguy~en ... In 1464 Emperor Lê Thánh Tông warned people against reckless selfcastration ( TT 3 : 189 ) .}}</ref>

The Vietnamese under Emperor Le Thanh Tong cracked down on foreign contacts and enforced an isolationist policy. A large amount of trade between Guangdong (Leizhou Peninsula and Hainan) and Vietnam happened during this time. Early accounts recorded that the Vietnamese captured Chinese whose ships had blown off course and detained them. Young Chinese men were selected by the Vietnamese for castration to become eunuch slaves to the Vietnamese. It has been speculated by modern historians that Chinese who were captured and castrated by the Vietnamese were involved in regular trade between China and Vietnam instead of being blown off course, and that they were punished after a Vietnamese crackdown on trade with foreign countries.<ref>{{cite web|title=明代广东海上丝绸之路的高度发展|url=http://eco.guoxue.com/article.php/15591/8|publisher=國學網--中國經濟史論壇(China Economic History Forum)|date=2008-03-16|author=黄啟臣|access-date=26 July 2013|archive-url=https://web.archive.org/web/20130921053755/http://eco.guoxue.com/article.php/15591/8|archive-date=2013-09-21|url-status=dead}}</ref><ref>{{cite web|title=貿易、移殖與文化交流:15–17 世紀廣東人與越南|url=http://www.lib.cuhk.edu.hk/conference/occ/liqingxin.pdf|publisher=廣東省社會科學院歷史研究所 南開大學中國社會歷史研究中心|access-date=5 January 2013|author=李慶新|page=12|quote=此外,沿海平民在海上航行或捕撈漁獵,遇風漂流至越南者時有發生。如成化十三年, 廣東珠池奉御陳彜奏:南海縣民遭風飄至安南被編入軍隊及被閹禁者超過 100 人。5成化中, 海南文昌人吳瑞與同鄉劉求等 13 人到欽州做生意,遇風飄至安南,當局將他們"俱發屯田, 以瑞獨少,宮之"。6... 6《明孝宗實錄》卷一百五十三,弘治十二年八月辛卯。|archive-url=https://web.archive.org/web/20130529055501/http://www.lib.cuhk.edu.hk/conference/occ/liqingxin.pdf|archive-date=2013-05-29|url-status=dead}}</ref>

A 1499 entry in the Ming Shilu recorded that thirteen Chinese men from Wenchang including a young man named Wu Rui were captured by the Vietnamese after their ship was blown off course while traveling from Hainan to Guangdong's Qin subprefecture (Qinzhou), after which they ended up near the coast of Vietnam, in the 1460s, during the Chenghua Emperor's rule (1464–1487). Twelve of them were enslaved to work as agricultural laborers, while the youngest Chinese man, Wu Rui (吳瑞) was selected by the Vietnamese court for castration since he was the only young man in among the thirteen and he became a eunuch at the Vietnamese imperial palace in Thang Long for nearly one fourth of a century. After years of serving the Vietnamese as a eunuch slave in the palace, he was promoted to a position with real power after the death of the Vietnamese ruler in 1497 to a military position in northern Vietnam as military superintendent since his service in the palace was apparently valued by the Vietnamese. However the Lạng Sơn guard soldier Dương Tam tri (Yang Sanzhi) (楊三知) told him of an escape route back to China and Wu Rui escaped to Longzhou after walking for 9 days through the mountains. The local ethnic minority Tusi chief Wei Chen took him into custody, overruling objections from his family who wanted to send him back to Vietnam. Vietnam found out about his escape and sent an agent to buy Wu Rui back from Wei Chen with 100 Jin in payment since they were scared that Wu Rui would reveal Vietnamese state secrets to China. Wei Chen planned to sell him back to the Vietnamese but told them the amount they were offering was too little and demanded more however before they could agree on a price, Wu was rescued by the Pingxiang magistrate Li Guangning and then was sent to Beijing to work as a eunuch in the Ming palace at the Directorate of Ceremonial (silijian taijian 司禮監太監).<ref>{{cite book |author=Shin |first=Leo K. |chapter-url=https://archive.org/details/chinesestateatbo0000unse/page/91 |title=The Chinese State at the Borders |publisher=UBC Press |year=2007 |isbn=978-0774813334 |editor=Lary |editor-first=Diana |edition= |location=Vancouver, Canada |page=91 |language=en |chapter=Ming China and Its Border with Annam |access-date=5 January 2013}}</ref><ref name="Cooke 2011 p. 109">Cooke (2011), p. 109 {{Google books|7mlKjn3FfoMC|The Tongking Gulf Through History|page=109}}</ref><ref>{{harvnb|Wade|2005|p=[http://www.epress.nus.edu.sg/msl/reign/hong-zhi/year-12-month-8-day-6 2704/05]}}</ref><ref>{{cite book |title=明實錄 (Ming Shilu) |language=zh |chapter=首页 > 06史藏-1725部 > 03别史-100部 > 47-明实录孝宗实录-- > 146-明孝宗敬皇帝实录卷之一百五十三 |quote= |access-date=5 January 2013 |chapter-url=http://wenxian.fanren8.com/06/03/47/146.htm}}</ref><ref>《明孝宗实录》卷一五三,弘治十二年八月辛卯</ref><ref name="Li 2015 p. 202">Li (2015), p. 202 {{Google books |LgGhCgAAQBAJ| Imperial China and Its Southern Neighbours|page=202}}</ref> The Đại Việt sử ký toàn thư records that in 1467 in An Bang province of Dai Viet (now Quảng Ninh Province) a Chinese ship blew off course onto the shore. The Chinese were detained and not allowed to return to China as ordered by Le Thanh Tong.<ref>Cooke (2011), p. 108 {{Google books|7mlKjn3FfoMC|The Tongking Gulf Through History|page=108}}</ref><ref>{{cite web|title=CÓ MỘT VÂN ĐỒN Ở GIỮA YÊN BANG, YÊN QUẢNG KHÔNG TĨNH LẶNG|author=PGS.TSKH Nguyễn Hải Kế(Associate Professor Dr. Nguyen Hai Ke)|url=http://khoalichsu.edu.vn/index.php?option=com_content&view=article&id=416:co-mt-van-n-gia-yen-bang-yen-qung-khong-tnh-lng-pgstskh-nguyn-hi-k&catid=25:bai-vit&Itemid=33|publisher=广州日报大洋网(www.dayoo.com)|date=28 March 2013 |access-date=26 July 2013|archive-url=https://web.archive.org/web/20131202234731/http://khoalichsu.edu.vn/index.php?option=com_content&view=article&id=416:co-mt-van-n-gia-yen-bang-yen-qung-khong-tnh-lng-pgstskh-nguyn-hi-k&catid=25:bai-vit&Itemid=33|archive-date=2 December 2013|url-status=dead}}</ref><ref>{{cite web|title=CÓ MỘT VÂN ĐỒN Ở GIỮA YÊN BANG, YÊN QUẢNG KHÔNG TĨNH LẶNG |author=PGS.TSKH Nguyễn Hải Kế(Associate Professor Dr. Nguyen Hai Ke) |url=http://duyhoang.net/co-mot-van-don-o-giua-yen-bang-yen-quang-khong-tinh-lang.htm |publisher=广州日报大洋网(www.dayoo.com) |date=22 April 2013 <!-- 18:56 --> |access-date=26 July 2013 |url-status=dead |archive-url=https://archive.today/20130727003650/http://duyhoang.net/co-mot-van-don-o-giua-yen-bang-yen-quang-khong-tinh-lang.htm |archive-date=27 July 2013 }}</ref><ref>{{cite book|title=Đại Việt Sử Ký Toàn Thư |editor=Lê Văn Hưu |editor2=Phan Phu Tiên |editor3=Ngô Sĩ Liên |others=Viện Khoa Học Xã Hội Việt Nam dịch |chapter=Phần 26 (Bản kỷ thực lục Q2(a) Nhà Hậu Lê (1460–1472).)|chapter-url=http://www.mtat.macdinhchi71.com/suutam/truyen/daivietsukytoanthu/hoi26.htm|publisher=Nhà xuất bản Khoa Học Xã Hội (Hà Nội) ấn hành|year=1993|access-date=26 July 2013|archive-url=https://web.archive.org/web/20130921053521/http://www.mtat.macdinhchi71.com/suutam/truyen/daivietsukytoanthu/hoi26.htm|archive-date=21 September 2013|url-status=dead}}</ref><ref>{{cite book|title=Đại Việt Sử Ký Toàn Thư |editor=Lê Văn Hưu |editor2=Phan Phu Tiên |editor3=Ngô Sĩ Liên |others=Viện Khoa Học Xã Hội Việt Nam dịch |chapter=DVSK Bản Kỷ Thực Lục 12: Nhà Hậu Lê (1460–1472) ... Phần 1(Đại Việt Sử Ký Bản Kỷ Thực Lục Quyển XII [1a] Kỷ Nhà Lê Thánh Tông Thuần Hoàng Đế)|url=http://www.informatik.uni-leipzig.de/~duc/sach/dvsktt/dvsktt17a.html|publisher=Nhà xuất bản Khoa Học Xã Hội (Hà Nội) ấn hành|year=1993|access-date=26 July 2013}}</ref> This incident may be the same one where Wu Rui was captured.<ref name="Cooke 2011 p. 109" />

Several Malay envoys from the Malacca sultanate were attacked and captured in 1469 by Vietnamese navy as they were returning to Malacca from China. The Vietnamese enslaved and castrated the young from among the captured.<ref>Tsai (1996), {{Google books|Ka6jNJcX_ygC|The Eunuchs in the Ming Dynasty (Ming Tai Huan Kuan)|page=15}}</ref><ref>[https://archive.org/details/s2miscellaneousp01leyduoft/page/252 Rost (1887)], {{Google books|TgkYAAAAYAAJ|Miscellaneous papers relating to Indo-China: reprinted for the Straits Branch of the Royal Asiatic Society from Dalrymple's "Oriental Repertory," and the "Asiatic Researches" and "Journal" of the Asiatic Society of Bengal, Volume 1|page=252}}</ref><ref>Rost (1887), {{Google books|utZMAAAAYAAJ|Miscellaneous papers relating to Indo-China and Indian archipelage: reprinted for the Straits Branch of the Royal Asiatic Society. Second Series, Volume 1|page=252}}</ref><ref>[http://www.epress.nus.edu.sg/msl/reign/cheng-hua/year-17-month-9-day-1 Wade (2005)], {{harvnb|Wade|2005|p=[http://epress.nus.edu.sg/msl/entry/2657 3785/86]}}</ref><ref>[https://ctext.org/wiki.pl?if=gb&chapter=824199《明宪宗实录》卷一百六,成化八年七月癸亥 《大明憲宗純皇帝實錄卷之二百十九》]</ref><ref>{{cite book|title=明實錄 (Ming Shilu)|chapter-url=http://wenxian.fanren8.com/06/03/49/203.htm|access-date=26 July 2013|language=Chinese|chapter=首页 > 06史藏-1725部 > 03别史-100部 > 49-明实录宪宗实录-- > 203-大明宪宗纯皇帝实录卷之二百十九|quote=Simplified Chinese:○满剌加国使臣端亚妈剌的那查等奏成化五年本国使臣微者然那入贡还至当洋被风漂至安南国微者然那与其傔从俱为其国所杀其余黥为官奴而幼者皆为所害又言安南据占城城池欲并吞满剌加之地本国以皆为王臣未敢兴兵与战适安南使臣亦来朝端亚妈剌的那查乞与廷辨兵部尚书陈钺以为此已往事不必深校宜戒其将来 上乃因安南使臣还谕其王黎灏曰尔国与满剌加俱奉正朔宜修睦结好藩屏王室岂可自恃富强以干国典以贪天祸满剌加使臣所奏朝廷虽未轻信尔亦宜省躬思咎畏天守法自保其国复谕满剌加使臣曰自古圣王之驭四夷不追咎于既往安南果复侵陵尔国宜训练士马以御之 Traditional Chinese:○滿剌加國使臣端亞媽剌的那查等奏成化五年本國使臣微者然那入貢還至當洋被風漂至安南國微者然那與其傔從俱為其國所殺其餘黥為官奴而幼者皆為所害又言安南據占城城池欲併吞滿剌加之地本國以皆為王臣未敢興兵與戰適安南使臣亦來朝端亞媽剌的那查乞與廷辨兵部尚書陳鉞以為此已往事不必深校宜戒其將來 上乃因安南使臣還諭其王黎灝曰爾國與滿剌加俱奉正朔宜修睦結好藩屏王室豈可自恃富強以幹國典以貪天禍滿剌加使臣所奏朝廷雖未輕信爾亦宜省躬思咎畏天守法自保其國複諭滿剌加使臣曰自古聖王之馭四夷不追咎于既往安南果複侵陵爾國宜訓練士馬以禦之}}</ref>

A 1472 entry in the Ming Shilu reported that some Chinese from Nanhai escaped back to China after their ship had been blown off course into Vietnam, where they had been forced to serve as soldiers in Vietnam's military. The escapees also reported that they found out that more than 100 Chinese men remained captives in Vietnam after they were caught and castrated by the Vietnamese after their ships were blown off course into Vietnam in other incidents. The Chinese Ministry of Revenue responded by ordering Chinese civilians and soldiers to stop going abroad to foreign countries.<ref>{{harvnb|Wade|2005|p=[http://www.epress.nus.edu.sg/msl/reign/cheng-hua/year-8-month-7-day-28 2078/79]}}</ref><ref>{{cite book |title=明實錄 (Ming Shilu) |language=zh |chapter=首页 > 06史藏-1725部 > 03别史-100部 > 49-明实录宪宗实录-- > 106-明宪宗纯皇帝实录卷之一百六 |quote= |access-date=5 January 2013 |chapter-url=http://wenxian.fanren8.com/06/03/49/106.htm}}</ref> These 100 men were taken prisoner around the same time as Wu Rui and the historian Leo K. Shin believes all of them may have been involved in illegal trade instead of being blown off course by wind.<ref>{{cite book |title=The Chinese State at the Borders |year=2007 |publisher=UBC Press |isbn=978-0774813334 |chapter-url=https://archive.org/details/chinesestateatbo0000unse/page/92 |author=Leo K. Shin |edition=illustrated |chapter=Ming China and Its Border with Annam |editor=Diana Lary |access-date=5 January 2013 |page=[https://archive.org/details/chinesestateatbo0000unse/page/92 92] }}</ref> The over 100 Chinese men who were castrated and made into eunuchs by the Vietnamese remained captives in Vietnam when the incident was reported. Both the incidents of the young Chinese man Wu Rui and the more than 100 Chinese men being castrated and used as eunuchs point to possible involvement in trade according to historians John K. Whitmore and Tana Li which was then suppressed by the Vietnamese government instead of them really being blown off course by the wind.<ref name="Li 2015 p. 202"/> China's relations with Vietnam during this period were marked by the punishment of prisoners by castration.<ref>Tsai (1996), {{Google books|Ka6jNJcX_ygC|The Eunuchs in the Ming Dynasty (Ming Tai Huan Kuan)|page=16}}</ref><ref>Tsai (1996), {{Google books|Ka6jNJcX_ygC|The Eunuchs in the Ming Dynasty (Ming Tai Huan Kuan)|page=245}}</ref>

Under the order of Lê Thánh Tông, the official historical text of the Lê dynasty, ''Đại Việt sử ký toàn thư'' (大越史記全書), was compiled and finished in 1479. The 15-volume book covered the entirety of Vietnamese history at that point, from the Hồng Bàng dynasty to the enthronement of Lê Thái Tổ.<ref>{{Cite web |title=The Dai Viet Su Ky Toan Thu and Classification Issues at the National Archives IV |url=https://mocban.vn/bo-van-sach-dai-viet-su-ky-toan-thu-va-van-de-phan-loai-tai-trung-tam-luu-tru-quoc-gia-iv/}}</ref>

=====Hồng Đức's campaigns against Champa and Lan Xang (1471–1480)===== {{Main|Nam tiến|Cham–Vietnamese War (1471)|Vietnamese-Laotian War (1479–80)}}

[[File:Map of Later Lê dynasty during the reign of Lê Thánh Tông (1460-1497).png|thumb|150px|right|Areas ruled by Đại Việt (red) and vassals (light red) and Champa (purple) during the reign of Lê Thánh Tông (1460–1497) after White Elephant War and Cham–Vietnamese War (1471).]]In 1471, Lê Thánh Tông conquered Champa and captured the Cham capital Vijaya, ending independent Cham rule in the south. The Kingdom of Champa was reduced to a small enclave near Panduranga (modern day Phan Rang–Tháp Chàm) and Kauthara (now Nha Trang) with many Chams fleeing to Cambodia.{{sfn|Juergensmeyer|Roof|2011|p=1210}}{{sfn|Schliesinger|2015|p=18}} Lê Thánh Tông created a new province out of former Cham land and allowed ethnic Vietnamese settlers to settle it. The conquest of the Cham kingdoms started a rapid period of expansion by the Vietnamese southwards into this newly conquered land. The government used a system of land settlement called ''đồn điền'' (屯田).{{Citation needed|date=March 2020}}

From 1478 to 1480, Lê Thánh Tông led an expedition against the kingdoms of Lan Xang and Lanna in today Laos and Northern Thailand.<ref name="M">Manlch, M.L. (1967) ''History of Laos'', pages 126–129.</ref> Laotians were overwhelmed, their capital Luang Prabang was captured. Laotians retreated to the jungles, where they waged two-years of guerrilla warfare against the Vietnamese.<ref name="M"/> King of Lan Xang Chakkaphat Phaen Phaeo sought refuge in Lanna.<ref name="M"/> Some of the Vietnamese army had reached the kingdom of Ava.<ref>Ming Shilu, volume 3, p. 111</ref> The expedition ended inconclusively, many Vietnamese soldiers died because of the hostile climate and rampant diseases;<ref>Đại Việt sử ký toàn thư, Ngô Sĩ Liên 1993, volume XIII</ref> The Vietnamese forces were unable to suppress the Laotian guerrillas, and then the Laotians were able to recapture their capital.<ref name="M"/> As the Vietnamese withdrew their army through the kingdom of Muang Phuan in December 1479, they annexed and incorporated it into Ninh Protectorate (Trấn Ninh) in 1480.<ref>Trần Trọng Kim, ''Việt Nam sử lược'', p. 102 [http://viethoc.org/eholdings/sach/vnsl.pdf]</ref>

==== Decline of the Early period ==== With the death of Lê Thánh Tông, the Lê dynasty fell into a swift decline (1497–1527).

Prince Lê Tăng, the eldest of Lê Thánh Tông's 14 sons, succeeded his father as Lê Hiến Tông (黎憲宗). He was 38 years old at the time of his father's death. He was an affable, meek and mild-mannered person. Due to his short period of rule and that he didn't pass many significant reforms, his reign is considered to be an extension of Lê Thánh Tông's rule. The new emperor was known to historical annals as Lê Hiến Tông. In early 1499, several high-ranking officials including Lê Vĩnh and Lê Năng Nhượng persuaded Hiến Tông to choose an heir in order to maintain the dynasty's and the nation's security and sustainability. Hiến Tông agreed; and although the emperor had two elder sons: Lê Tuân and Lê Tuấn, Lê Thuần was designed as crown prince due to his deep interest in intellectuality and Neo-Confucianism, which caused Hiến Tông to perceive him as being far superior to his two older brothers.<ref>{{Harvnb|Đại Việt's Office of History|1993|pp=526–527.}}</ref> He chose his third son, Lê Túc Tông (黎肅宗) to be his successor. In 1504, Lê Hiến Tông died at 44 years old. The 17 year old Lê Thuần inherited the throne. The Confucian annalists portrayed him as a relatively good emperor who released many prisoners, stopping several construction works that posed heavy burden on his subjects, as well as reducing tributes from vassals and holding high-ranking officials in high regard. He was also said to have maintained harmony in the court and the whole country. In the other hand, the annals also recorded a revolt broke in Cao Bằng, led by Đoàn Thế Nùng against the government. Lê Thuần sent troops to Cao Bằng, defeating and killing Đoàn Thế Nùng along with 500 rebels.<ref name="Đại Việt's Office of History 1993 541–543">{{Harvnb|Đại Việt's Office of History|1993|pp=541–543}}</ref> However, he fell gravely ill and died just six months after assuming the throne.

Lê Uy Mục (黎威穆) was the second son of Emperor Lê Hiến Tông. In 1505, as older brother of Emperor Lê Túc Tông, he succeeded the throne, later known under posthumous name Uy Mục hoàng đế (威穆皇帝). Lê Uy Mục was portrayed by Neo-Confucianist chroniclers as being deeply contrasted to his predecessors Lê Thánh Tông, Lê Hiến Tông and Lê Túc Tông, who closely followed Neo-Confucianist principles in governing the nation.<ref name="Đại Việt's Office of History 1993 541–543"/> The first thing the new emperor did was to take revenge against those who had barred him from the throne by having them killed. Among his victims were the former emperor's mother – which was considered<ref>{{Harvnb|Đại Việt's Office of History|1993|p=544}}</ref> a shocking display of evil behavior. Lê Uy Mục was described by a Ming ambassador – as a cruel, sadistic, and depraved person, who wasted the court's money and finances to indulge his whims. Well aware that he was detested by his subjects, Lê Uy Mục protected himself by hiring a group of elite bodyguards to surround him at all times. Among them was Mạc Đăng Dung, who became very close to the emperor and eventually rose to the rank of general. Despite his precautions, in 1509 a cousin, whom Lê Uy Mục had put in prison, escaped and plotted with court insiders to assassinate the emperor. The assassination succeeded and the killer proclaimed himself emperor under the name Lê Tương Dực.

Lê Tương Dực (黎襄翼), posthumous name Tương Dực Hoàng đế (襄翼皇帝), proved to be just as bad a ruler as Lê Uy Mục. He reigned from 1510 to 1516, all the while spending down the imperial treasury, and doing nothing to improve the country. He was heedless to the reaction that his taxes caused throughout the country. Later in his reign, he spent extravagantly in building many colossal palaces in the imperial capital, Thăng Long. The most notable of those places was one known to the Vietnamese as ''Cửu Trùng Đài'' (九重臺, trans. "Nine-Leveled Tower"), designed by the emperor's favoured architect Vũ Như Tô. He also spent much time enjoying sexual activities with his concubines, many of whom were former concubines of Lê Hiến Tông and Lê Uy Mục. According to court chroniclers, he ordered the build of special boats for his nude concubines to row on large artificial lakes.<ref name="Đại Việt's Office of History 1993 566–568">{{Harvnb|Đại Việt's Office of History|1993|pp=566–568.}}</ref> As the result of the emperor's luxurious lifestyle and ignorance of state affairs, the people suffered considerable hardships. Many soldiers committed to build imperial palaces died due to diseases.<ref name="Đại Việt's Office of History 1993 566–568"/> As the government became increasingly unpopular, many rebellions broke out. The largest of them was that of Trần Cảo, a northerner who claimed to be an heir of the House of Trần.<ref>{{Harvnb|Đại Việt's Office of History|1993|pp=568–569.}}</ref> His rule ended in 1516 when a group officials and generals led by Trịnh Duy Sản stormed the palace and killed him.<ref>Bruce M. Lockhart, William J. Duiker -The A to Z of Vietnam 2010– Page 211 "Lê Uy Mục (1488–1509). Seventh emperor (r. 1505–1509) of the Lê dynasty. Lê Uy Mục quickly showed himself to be a ruthless ruler, murdering his grandmother and two of his ministers. His unpopularity led to the popular nickname given to ...He was assassinated by his cousin in 1509, who then seized the throne under the dynastic title of Tương Dực. ... that Vietnam had enjoyed during the 15th century and paved the way for the usurpation of the throne by Mạc Đăng Dung.</ref><ref>{{cite book|author=Trần Trọng Kim|author-link=Trần Trọng Kim|year=2005|title=Việt Nam sử lược|publisher=Ho Chi Minh City General Publishing House|place=Ho Chi Minh City|language=vi|page=248}}</ref>

==== Crisis and revolts ==== At 14 years old, nephew of Lê Tương Dực, prince Lê Y, was enthroned as the new emperor Lê Chiêu Tông (ruled 1516–1522).<ref name=CK/> Factions within the court vied with one another for control of the government. One powerful and growing faction was led by Mạc Đăng Dung, a military leader who rose through the ranks.<ref>''Vietnam, Trials and Tribulations of a Nation'' D. R. SarDesai, p37, 1988</ref> His growing power was resented by the leaders of two noble families in Vietnam: the Nguyễn, under Nguyễn Hoàng Dụ and the Trịnh, under Trịnh Duy Đại and Trịnh Duy Sản. After several years of increasing tension, the Nguyễn and the Trịnh left the capital Hanoi (then called Đông Đô) and fled south, with the Emperor "under their protection".

In 1524, Mạc Đăng Dung forces captured and executed the leaders of the revolt (Nguyễn Hoàng Du, Trịnh Duy Đại, and Trịnh Duy Sản). The revolt by the Trịnh clan and the Nguyễn clan was defeated for the moment. This was the start of a civil war with Mạc Đăng Dung and his supporters on one side and the Trịnh and the Nguyễn on the other side. Thanh Hóa Province, the ancestral home to the Trịnh and the Nguyễn, was the battle ground between the two sides. After several years of warfare, Emperor Lê Chiêu Tông was assassinated in 1522 by Mạc Đăng Dung's supporters. Not long after, the leaders of the Nguyễn and the Trịnh were executed. Mạc Đăng Dung was now the most powerful man in Vietnam.

==== Usurpation of Mạc Đăng Dung ==== {{Main|Mạc dynasty|Mạc Đăng Dung}}

The degenerated Lê dynasty, which endured under six rulers between 1497 and 1527, in the end was no longer able to maintain control over the northern part of the country, much less the new territories to the south. The weakening of the monarchy created a vacuum that the various noble families of the aristocracy were eager to fill. Soon after Lê Chiêu Tông fled south with the Trịnh and the Nguyễn in 1522, Mạc Đăng Dung proclaimed the Emperor's younger brother, Lê Xuân, as the new Emperor under the name Lê Cung Hoàng. In reality, the new Emperor had no power. Three years after Mạc's forces killed his older brother Lê Chiêu Tông, Lê Chiêu Tông was pressured by Mạc Đăng Dung to hang himself on 18 June 1527 in Bắc Sứ garden. Mạc Đăng Dung, being a scholar-official who had effectively controlled the Lê for a decade, murdered all the Lê imperial family members then proclaimed himself the new Emperor of Vietnam on 15 June 1527, ending (so he thought) the Lê dynasty (see Mạc dynasty for more details).

Mạc Đăng Dung's seizure of the throne prompted other families of the aristocracy, notably the Nguyễn and Trịnh, to rush to the support of the Lê loyalists. With the usurpation of the throne, the civil war broke out anew. Again the Nguyễn and the Trịnh gathered an army and fought against Mạc Đăng Dung, this time under the leadership of Nguyễn Kim and Trịnh Kiểm. The Trịnh and the Nguyễn were nominally fighting on behalf of the Lê emperor but in reality, for their own power.

=== Southern and Northern Dynasties (1533–1597) === {{main|Southern and Northern Dynasties (Vietnam){{!}}Southern and Northern Dynasties|Lê–Mạc War}}

The Lê loyalists under Lê Ninh, a descendant of the Imperial family, escaped to Muang Phuan (today Laos). Marquis of An Thanh Nguyễn Kim summoned the people who were still loyal to the Lê emperor and formed a new army to begin a revolt against Mạc Đăng Dung. Subsequently, Nguyễn Kim returned to Đại Việt and led the Lê loyalists in a sixty-year-long civil war. In 1536 and 1537, Nguyên Hòa sent two envoys to Beijing to ask the Jiajing Emperor of the Ming dynasty to send an army to fight against the Mạc to restore the Lê dynasty.<ref>{{Cite book|title=In Ming China and Vietnam: Negotiating Borders in Early Modern Asia|author=Baldanza, K.|year=2016|publisher=Cambridge: Cambridge University Press}}</ref> Many Ming officials like Mao Bowen<!--Q11126367--> showed strong support for the Lê loyalists and urged Jiajing Emperor to prepare a military campaign.<ref>Ming shilu, volume 198, Mao Bayu's story</ref> The Ming Emperor agreed.<ref>Đại Việt sử ký bản kỉ tục biên, vol 16</ref>

In 1527, the Vũ Văn clan in Hà Giang and northern Hưng Hóa rebelled against Mạc Đăng Dung and set up their own government. Vu Van Uyen<!--Q7224343--> and his family were called Bầu lords<!--Q10748629-->. In 1534, after Nguyễn Kim forces recaptured Thanh Hóa, Vũ Văn Uyên allied with Lê loyalists and the Ming army to fight against the Mạc dynasty.<ref>Phan Huy Chú (1821), Lịch triều hiến chương loại chí, volume 1, p. 402.</ref> But Mạc Đăng Dung himself in 1540 went and surrendered the Ming army, wishing for peace. Mạc Đăng Dung ceded the northeast Vietnamese coastal to the Ming dynasty in exchange for the promise that the Ming dynasty would never invade Vietnam again.<ref>[https://www2.ihp.sinica.edu.tw/file/2173khfWVKe.pdf Perspectives on the 1540 Mac Surrender to the Ming (in PDF).]</ref> The Chinese now recognized both Mạc and Lê legitimacy over Đại Việt and withdrew their army.<ref>Đại Việt Sử Ký toàn thư, volume 16</ref> Bầu Lords showed strong support for the Lê dynasty and refused to accept Trịnh family at the early stage of Trịnh–Nguyễn War. Later, they cooperated with the Trịnh. Bầu Lords lasted for nearly 200 years from 1527 to 1699.

In 1542, Lê army from Muang Phuan recaptured Nghệ An. Mạc general Dương Chấp Nhất surrendered.<ref>Khâm định Việt sử Thông giám Cương mục, volume 27.</ref> After capturing the region of Thanh Hóa and Nghệ An, the Revival Lê dynasty eventually recaptured three-quarters of their former kingdom. Inasmuch as the Mac dynasty ruled the northern portion of Đại Việt while the Lê dynasty ruled the remainder of the country, this time became known as the period of Northern and Southern dynasties.

In 1545, Nguyễn Kim was poisoned by Dương Chấp Nhất, a surrendered general of the Mạc dynasty. The power of imperial court was then passed to Nguyễn Kim's son-in-law Trịnh Kiểm who became the founder of the Trịnh lords. Since then the emperor had only become a figurehead, Trịnh Kiểm and his successors were the ''de facto'' rulers of the country and continued the war with the Mạc. The war had three actual fighting periods: 1533–1537, 1551–1564 and 1584–1592. During the early confrontation period, the Lê dynasty introduced personal firearms like matchlocks into their army and surprised the Mạc army.{{sfn|Andrade|2016|p=169}}<ref>{{citation |url=http://greatmingmilitary.blogspot.com/2014/11/matchlock-of-ming-dynasty.html |title=Matchlock firearms of the Ming Dynasty |date=10 November 2014 |access-date=25 February 2017}}</ref>thumb|180px|Map of Vietnam showing the Mạc controlled territories (green) and the Lê-Nguyễn-Trịnh alliance controlled territories (blue) circa 1570.Trịnh Tùng succeed his father in 1570, established the Trịnh lords and launched a large-scale offensive against the Mạc army in January 1592.<ref>Trịnh Như Tấu, 1993 p. 19.</ref> Unable to resist the forces of the Lê loyalists, in December 1592 the Mạc dynasty retreated to the north and established a new capital at Cao Bằng Province allying with the Ming dynasty of China as a tributary nation against the Lê dynasty.

=== Restored Lê (1597–1789) ===

In 1597, the Ming dynasty recognized the legitimacy of the Lê monarch.<ref>Phan Huy Chú, pp. 260–261.</ref> However, the Ming recorded that the Lê rulers were very dissatisfied with the Ming Empire because the Chinese also concurrently supported the Mạc dynasty. In 1589, Toyotomi Hideyoshi sent envoys to the Lê court in Thanh Hoá, asking the Vietnamese to join Japan's alliance against Ming China and Joseon Korea.<ref name=cc>{{cite web|url=https://kknews.cc/history/5e2543.html|title=Before the Imjin War, Japan wanted to attack the Ming dynasty with Vietnam|author=原文網址|language=zh-hans|date=12 August 2016}}</ref> Hideyoshi hoped that a three-pronged attack on the Ming dynasty—with Japan from the north, Vietnam to the south, and other Southeast Asian nations to the southwest—would weaken the Ming army and allow the attackers to prevail.<ref name=cc/> Although some officials supported the plan, the Lê emperor Quang Hưng and his ministers recognized the overwhelming strength of the Ming empire; the Lê ministers further viewed Japan and other Southeast Asian nations as "barbarians" and formally refused the Japanese lord's invitation.<ref name=cc/>{{better source needed|date=May 2020}}

The Ming loyalist Chinese pirate Yang Yandi (Dương Ngạn Địch)<ref>{{cite journal |last1=Antony |first1=Robert J. |title="Righteous Yang": Pirate, Rebel, and Hero on the Sino-Vietnamese Water Frontier, 1644– 1684 |journal=Cross-Currents: East Asian History and Culture Review |date=June 2014 |issue=11 |pages=4–30 |url=https://cross-currents.berkeley.edu/sites/default/files/e-journal/articles/antony.pdf}}</ref> and his fleet sailed to Vietnam to leave the Qing dynasty in March 1682, first appearing off the coast of Tonkin in north Vietnam. According to the Vietnamese account, Vũ Duy Chí 武惟志, a minister of the Vietnamese Lê dynasty came up with a plan to defeat the Chinese pirates by sending more than 300 beautiful Vietnamese singing girls and prostitutes carrying red handkerchiefs to the Chinese pirate junks on small boats. The Chinese pirates and northern Vietnamese girls had sex but the women then wet the gun barrels of the Chinese pirates ships with their handkerchiefs. They then left in the same boats. The Vietnamese navy attacked the Chinese pirate fleet who were unable to fire back with their wet guns. The Chinese pirate fleet, originally 206 junks, was reduced to 50–80 junks by the time it reached south Vietnam's Quang Nam and the Mekong delta. The Chinese pirates having sex with north Vietnamese women may also have transmitted a deadly epidemic from China to the Vietnamese which ravaged the Tonkin regime of north Vietnam. French and Chinese sources say a typhoon contributed to the loss of ships along with the disease.<ref>{{cite book |last1=Li |first1=Tana |editor1-last=Mair |editor1-first=Victor H |editor2-last=Kelley |editor2-first=Liam |title=Imperial China and Its Southern Neighbours |date=2015 |publisher=Institute of Southeast Asian Studies |series=CHINA SOUTHEAST ASIA History |isbn=978-9814620536 |page=199 |edition=illustrated, reprint |chapter-url=https://books.google.com/books?id=LgGhCgAAQBAJ&pg=PA199 |chapter=8 Epidemics, Trade, and Local Worship in Vietnam, Leizhou peninsula, and Hainan island}}</ref><ref>{{cite book |last1=Li |first1=Tana |editor1-last=Mair |editor1-first=Victor H |title=Imperial China and Its Southern Neighbours |date=2016 |chapter=8 Epidemics, Trade, and Local Worship in Vietnam, Leizhou peninsula, and Hainan island |publisher=Flipside Digital Content Company Inc. |isbn=978-9814620550 |chapter-url=https://books.google.com/books?id=BB1qDwAAQBAJ&dq=300+prostitutes+singing+girls+small+boats+enemy+junks&pg=PT160}}</ref><ref>{{cite journal |last1=Li |first1=Tana |title=Epidemics in late pre-modern Vietnam and their links with her neighbours 1 |journal=Imperial China and Its Southern Neighbours |date=28–29 June 2012 |issue=organized by the Institute of Southeast Asian Studies |pages=10–11 |url=https://www.academia.edu/39966246 |publisher=Institute of Southeast Asian Studies |location=Singapore}}</ref><ref>{{cite book |title=公餘捷記 • Công dư tiệp ký |page=2 |edition=R.229 • NLVNPF-0744 |url=https://lib.nomfoundation.org/collection/1/volume/927/page/2}}</ref> The Nguyễn court allowed Yang (Duong) and his surviving followers to resettle in Đồng Nai, which had been newly acquired from the Khmers. Duong's followers named their settlement as "Minh Huong", to recall their allegiance to the Ming dynasty.{{sfnp|Khánh Trần|1993|p=15}}

==== Trịnh–Nguyễn contention ==== {{main|Trịnh–Nguyễn War|Trịnh lords|Nguyễn lords}}

In 1620, Nguyễn Phúc Nguyên officially refused to send taxes to the court in Hanoi. A formal demand was made to the Nguyễn to submit to the authority of the court, and it was formally refused. In 1623 Trịnh Tùng died and was succeeded by his son Trịnh Tráng. Trịnh Tráng made yet another formal demand for submission, and again Nguyễn Phúc Nguyên refused. Finally in 1627 open warfare broke out between the Trịnh and the Nguyễn. For four months a large Trịnh army campaigned against the Nguyễn army but were unable to defeat them. {{Citation needed|date=January 2012}} The result of this war was that Vietnam had effectively been partitioned into northern and southern regions, with the Trịnh controlling most of the north and the Nguyễn controlling most of the south; the dividing line was the Gianh River in Quảng Bình Province. This border was very close to the Seventeenth parallel (in actuality the Bến Hải River located just to the south in Quảng Trị Province), which was imposed as the border between North Vietnam and South Vietnam during the 1954–1975 Partition of Vietnam. {{Citation needed|date=January 2012}} [[File:Mông Đồng.jpg|right|thumb|Mông Đồng illustration, warship of Lê dynasty]] [[Image:VN rifles.jpg|180px|thumb|right|Goa style Jiaozhi arquebuses, were invented and widespread in Vietnam during the 16–17th century]] thumb|right|Vietnamese swords in Lê dynasty

While the Trịnh ruled over a much more populous territory, the Nguyễn had several advantages. First, they were on the defensive and as such were more motivated to fight. Second, the Nguyễn were able to take advantage of their contacts with the Europeans, specifically the Portuguese, to purchase advanced European weapons and hire European military experts in fortifications. Third, the geography was favorable to them, as the flat plains of the North suitable for large organized armies ended at Nguyễn-controlled territory; the mountains of the central highlands reach almost to the sea.<ref name=Dupuy>Dupuy, p. 653.</ref>

After the first campaign, the Nguyễn built two massive fortified lines which stretched a few miles from the sea to the central highlands. The walls were built north of Huế near the city of Đồng Hới. The Nguyễn defended these lines against numerous Trịnh offensives which lasted till 1672.<ref name=Dupuy/> Tradition holds that the builder of these walls was a Vietnamese general who was hired from the Trịnh court by the Nguyễn. Under his direction the walls held repeatedly against multiple Trịnh assaults, even when they mustered an army of 100,000 men, 500 elephants, and 500 large ships.<ref name=Dupuyb>Dupuy, p. 596.</ref>250x250px|thumb|Partition of Vietnam in the 1650s, amid the Trịnh-Nguyễn war|leftIn 1633 the Trịnh tried attacking the Nguyễn by sea to avoid costly assaults on the great walls. However, the Trịnh fleet was defeated by the Nguyễn fleet at the battle of Nhat-Le.<ref name=Dupuy/> Around 1635 the Trịnh decided to emulate the Nguyễn and sought military aid from the Europeans. Trịnh Tráng hired the VOC to make European cannons and ships for his army. In 1642–43, the Trịnh army attacked the Nguyễn walls. With the aid of the Dutch cannons, the Trịnh army broke through the first wall but failed to break through the second. At sea, the Trịnh, with their Dutch ships ''Kievit'', ''Nachtegaels'' and ''Woekende Book'' were defeated at sea by the Nguyễn fleet with their Chinese style galleys.<ref>Reid p. 230.</ref><ref>Hoang, p. 83.</ref><ref>Wiest, p. 23.</ref><ref>Li, p. 96.</ref><ref>Weiss, p. 176.</ref> Trịnh Tráng staged yet another offensive in 1648 but at the battle of Truong Duc, the Trịnh army was again badly beaten by the Nguyễn.<ref name=Dupuy/> The new Lê emperor died around this time, perhaps as a result of the defeat. This now left the door open for the Nguyễn to finally go on the offensive.

The Nguyễn launched their own invasion of northern Vietnam in 1653. The Nguyễn army went north and defeated the weakened Trịnh army, capturing Quảng Bình and Hà Tĩnh Province. In the following year, Trịnh Tráng died as Nguyễn forces entered Nghệ An Province. Under the leadership of Trịnh Tráng's successor the capable Trịnh Tạc however, the northern army managed to defeat the Nguyễn army. The Nguyễn were also further weakened by a division between their two top generals who refused to cooperate with each other. In 1656 the Nguyễn army was driven back all the way to their original territories. Trịnh Tạc tried to break the walls of the Nguyễn in 1661 but this attack, like so many before it, failed.

In 1672, the Trịnh army made a last effort to conquer the Nguyễn. The attacking army was under the command of Trịnh Tạc's son, Trịnh Căn, while the defending army was under the command of Nguyễn Phúc Tần's son Prince Nguyễn Phúc Thuận. {{Citation needed|date=January 2012}} The attack, like all the previous attacks on the Nguyễn walls, failed. This time the two sides agreed to a peace. With the Qing dynasty under the Kangxi Emperor serving as mediator, the Trịnh and the Nguyễn finally agreed to end the fighting by making the Linh River the border between their lands (1673). Although the Nguyễn nominally accepted the Lê emperor as the legitimate and sole ruler of Vietnam. However, the reality was that the Nguyễn ruled the south, and the Trịnh, the north. This division continued for the next century. The border between the Trịnh and the Nguyễn was strongly fortified yet remained peaceful. Despite the ''de facto'' partition of the empire, both the ruling families of the two realms claimed to be loyal subjects under the authority of the singular imperial Lê family, and their territories were ''de jure'' all under the same empire, Đại Việt.

==== Tây Sơn rebellion ==== {{main|Tây Sơn dynasty}}

[[File:MS 828 10.jpg|thumb|Emperor Lê Hy Tông gives an audience 1684.|right]] The stalemate between the Trịnh and the Nguyễn lords that began at the end of the 17th century did not, however, mark the beginning of a period of peace and prosperity. Instead the decades of continual warfare between the two families had left the ruists and peasantry in a weakened state, the victim of taxes levied to support the courts and their military adventures. Having to meet their tax obligations had forced many peasants off the land and facilitated the acquisition of large tracts by a few wealthy landowners, nobles, and scholar—officials. Because scholar—officials were exempted from having to pay a land tax, the more land they acquired, the greater was the burden that fell on those peasants who had been able to retain their land. In addition, the peasantry faced new taxes on staple items such as charcoal, salt, silk, and cinnamon, and on commercial activities such as fishing and mining. The disparate condition of the economy led to neglect of the extensive network of irrigation systems as well.{{Citation needed|date=May 2020}}

As they fell into disrepair, disastrous flooding and famine resulted, unleashing great numbers of starving and landless people to wander aimlessly about the countryside. The widespread suffering in North Vietnam led to numerous peasant revolts between 1730 and 1770, notable the peasant rebellion of Nguyễn Hữu Cầu from 1748 to 1751. Although the uprisings took place throughout the country, they were essentially local phenomena, breaking out spontaneously from similar local causes. The occasional coordination between and among local movements did not result in any national organization or leadership. Moreover, most of the uprisings were conservative, in that the leaders supported the restoration of the Lê dynasty. They did, however, put forward demands for land reform, more equitable taxes, and rice for all.[[File:Tàu chiến tây Sơn.jpg|180px|thumb|Tây Sơn large junk with cannons model|left]]Landless peasants accounted for most of the initial support for the various rebellions, but they were often joined later by craftsmen, fishermen, miners, and traders, who had been taxed out of their occupations. Some of these movements enjoyed limited success for a short time, but it was not until 1771 that any of the peasant revolts had a lasting national impact.{{Citation needed|date=May 2020}}

Dissatisfaction against two ruling families Trịnh and Nguyễn spread throughout the country. In 1771, three brothers Nguyễn Nhạc, Nguyễn Lữ and Nguyễn Huệ in An Khê, Bình Định with local peasants' support, revolted against the Nguyễn lord.<ref>Kim, p. 359.</ref><ref>Dutton (2006), p. 236</ref><ref>Kohn, p. 523.</ref> In 1773, the Tây Sơn captured Quy Nhơn fort in 1773, gave them financial and manpower support, thus made the rebellion and became widespread. In 1774, Trịnh army from the north launched an offensive against the Nguyễn. Unable to fight two-front war, Lord Nguyễn Phúc Thuần lost the control of Cochinchina, fled by ship to the Mekong delta. Nguyễn's capital Phú Xuân was captured by Trịnh lord. Nguyễn Phúc Thuần later was taken and executed by the Tây Sơn in 1777.<ref>{{Cite book|title=A History of Vietnam|author=Chapuis, Oscar|year=1995|publisher=Greenwood Publishing Group|pages=138–141}}</ref> The remnant Nguyen led by Nguyễn Ánh with help from the French priest Pigneau de Behaine ''(Bá Đa Lộc)'',<ref>{{harvnb|Thụy Khuê|2017|pp=140–142}}</ref><ref>{{harvnb|Tạ Chí Đại Trường|1973|p=91}}</ref><ref>{{cite book|author=Naval Intelligence Division (Anh Quốc)|title=Indo-China|date=11 January 2013|publisher=Routledge|isbn=978-1-136-20911-6|page=176}}</ref><ref>{{cite book|author=Hugh Dyson Walker|title=East Asia: A New History|url=https://books.google.com/books?id=3Z3a0NU4RHMC&pg=PA298|date=November 2012|publisher=AuthorHouse|isbn=978-1-4772-6516-1|page=298}}</ref><ref>{{harvnb|McLeod|1991|p=9}}</ref> he soon recruited his army by enlisted French, Cambodian troops and weapons, but mostly were defeated by the superior and more numerous Tây Sơn rebels four times, and Ánh went into exile in Siam.<ref>Buttinger, p. 234.</ref> The Tây Sơn rebellion were not content to simply conquer the southern provinces of the country.

==== End of the dynasty ==== In 1782, Trịnh Sâm died and passed the throne to his 5-year-old son Trịnh Cán instead of his 19-year-old son Trịnh Tông, who was demoted after his failed coup d'état attempt in 1780. Trịnh Sâm assigned Hoàng Tố Lý (also known as Hoàng Đình Bảo) as Cán's regent. Trịnh Tông allied with the Three Prefectures Army ({{Langx|vi|Tam phủ quân}}, {{Lang-vi-hantu|三府軍}}) to overthrow Trịnh Cán and kill Hoàng Tố Lý. The army then released the emperor's grandson Lê Duy Kỳ (also known as Lê Duy Khiêm) from imprisonment and forced the emperor to appoint him as the next successor. Trịnh Tông feared that the army's power would grow stronger. He secretly ordered governors of the Four Provinces (Kinh Bắc, Sơn Nam, Hải Dương, Sơn Tây) to march into the capital and dismiss the Three Prefectures Army. However the plan was discovered by the army and Trịnh Tông had to cancel it. left|thumb|Army of Le dynasty, late 18th century

Hoàng Tố Lý's subordinate Nguyễn Hữu Chỉnh, after hearing about Tố Lý's death, took refuge in Tây Sơn.

In 1786, king of Tây Sơn Nguyễn Nhạc wanted to recover the old territory of Nguyễn lords captured by the Trịnh. He ordered Nguyễn Huệ and Nguyễn Hữu Chỉnh to undertake the task. Nhạc warned Huệ not to attack Bắc Hà. However, Chỉnh convinced Huệ to do so, under the slogan "''Destroy the Trịnh and aid the Lê''" ({{Langx|vi|Diệt Trịnh phù Lê}}, {{Lang-vi-hantu|滅鄭扶黎}}) that would help them gain support from Bắc Hà people. Trịnh army and the Three Prefectures Army were quickly defeated. Trịnh Tông committed suicide. Emperor Cảnh Hưng died of old age shortly after and passed the throne to Lê Duy Kỳ (emperor Chiêu Thống).

Nguyễn Nhạc, after having heard of Nguyễn Huệ's insubordination, hastily marched to Thăng Long and ordered all Tây Sơn troops to withdraw. However they intentionally left Nguyễn Hữu Chỉnh behind. Chỉnh chased after them and then stayed in his hometown in Nghệ An.

After Tây Sơn's withdrawal, members of Trịnh clan, namely Trịnh Lệ and Trịnh Bồng, along with their supporters marched into Thăng Long and demanded Chiêu Thống to reinstall Trịnh lord. Chiêu Thống, whose father was killed by Trịnh Sâm, reluctantly agreed and assigned Trịnh Bồng as Prince of Yến Đô ({{Langx|vi|Yến Đô vương}}, {{Lang-vi-hantu|晏都王}}). Emperor Chiêu Thống then sent a secret order to Nguyễn Hữu Chỉnh to come and save him. In 1787, Nguyễn Hữu Chỉnh marched North, defeated Trịnh Bồng and his supporters, ended the 242 years rule of Trịnh clan.

In late 1787, Nguyễn Huệ, no longer served under Nguyễn Nhạc, sent Vũ Văn Nhậm to invade Bắc Hà under the pretense of punishing Nguyễn Hữu Chỉnh for insubordination. Nhậm captured and executed Chỉnh in January 1788, emperor Chiêu Thống fled to the east of Hong River. Vũ Văn Nhậm installed Lê Duy Cận as Country Supervisor ({{Langx|vi|Giám quốc}}, {{Lang-vi-hantu|監國}}) without Huệ's approval. Nguyễn Huệ accused Nhậm of treason and executed him, took over Bắc Hà.<ref>Khâm định Việt sử Thông giám cương mục, volume 45 – 47</ref>

=====Lê Chiêu Thống fled to China===== Lê Chiêu Thống sent envoy to the Imperial court of the Qing Empire to ask for aid against the Tây Sơn. The Qianlong Emperor of the Qing Empire under the pretense of restoring Lê dynasty dispatched a large force of 200,000 soldiers, to invade Northern Vietnam, captured the capital Thăng Long.{{Citation needed|date=May 2020}}

At the beginning of the war, Nguyễn Huệ's troops retreated to the South and refused to engage the Qing army. He raised a large army of his own and defeated the invader in the Lunar New year Eve of 1789. Chiêu Thống and the imperial family fled north into China, never to return. The Lê dynasty finally ended after ruling Vietnam for 356 years. He went to Beijing where he was appointed a Chinese mandarin of the fourth rank in the Han Yellow Bordered Banner, while lower ranking loyalists were sent to cultivate government land and join the Green Standard Army in Sichuan and Zhejiang. They adopted Qing clothing and adopt the queue hairstyle, effectively becoming naturalized subjects of the Qing dynasty affording them protection against Vietnamese demands for extradition.<ref>{{cite book|url=https://books.google.com/books?id=YV1hBQAAQBAJ&q=southwest+fiery+frontier++queue&pg=PA309|page=309|title=China's Encounters on the South and Southwest: Reforging the Fiery Frontier Over Two Millennia|series=Handbook of Oriental Studies. Section 3 Southeast Asia|first1=James A.|last1=Anderson|first2=John K.|last2=Whitmore|edition=reprint, revised|publisher=BRILL|date=2014|isbn=978-9004282483}}</ref><ref>[http://art-hanoi.com/toda/16_.html ''Annam and its Minor Currency''], chapter 16.</ref> From this point on, Lê Chiêu Thống failed to receive support from the Qing Empire of China any more.<ref name="Kim 2005"/> He spent the rest of his life in China, and died in 1793.<ref name="Kim 2005"/> In 1802, when envoys of the Nguyễn dynasty visited China, Lê dynasty loyalists requested that the Jiaqing Emperor let them bring Lê Chiêu Thống's remains back to Vietnam and the emperor agreed.<ref name="Kim 2005"/> The Jiaqing Emperor also freed all the followers of Lê Chiêu Thống who were imprisoned in China to go back to Vietnam.<ref name="Kim 2005"/> Lê Chiêu Thống's remains are buried in Bàn Thạch village, Thanh Hóa, Vietnam.<ref name="Kim 2005">Trần Trọng Kim, pp. 372–373.</ref> He was posthumously given the title Mẫn Đế (愍帝). Modern descendants of the Lê dynasty live in southern Vietnam.<ref>{{cite web|url=https://baodanang.vn/channel/6058/201902/con-trai-vua-le-the-tong-o-dat-thanh-chau-3168664/|title=Con trai vua Lê Thế Tông ở đất Thanh Châu|language=vi|date=24 April 2019|author=Thái Mỹ}}</ref><ref>{{cite web|url=http://danviet.vn/dong-tay-kim-co/vi-sao-hau-due-nha-le-bi-vua-nguyen-day-vao-nam-937566.html|title=After Minh Mang reigned Nguyen Dynasty, why he deported Le royal descendants to the Southern Vietnam?|language=vi|date=9 December 2018|author=Lê Tiên Long}}</ref>

==Culture, society, and science== ===Clothing and customs=== After ending the Fourth Chinese domination of Vietnam, people of Đại Việt started to rebuild the country. The dress regulation for emperor and the bureaucracy was learned from the previous dynasties of Vietnam and Ming dynasty of China. In later Lê dynasty, cross-collared robe called ''áo giao lĩnh'' was popular among civilians.<ref>{{Cite book|last=Trần|first=Quang Đức|url=https://books.google.com/books?id=E7FhDwAAQBAJ&q=%E4%B8%8A%E5%A4%A7%E4%BA%BA%E4%B8%98%E4%B9%99%E5%B7%B2%E4%B9%8B%E9%A1%9E&pg=PT82|title=Ngàn năm áo mũ|publisher=Công Ty Văn Hóa và Truyền Thông Nhã Nam|year=2013|isbn=978-1629883700|location=Vietnam|pages=156|language=vi}}</ref><ref>{{Cite book|last1=Đào|first1=Phương Bình|url=https://thuvienhoasen.org/images/file/WQFNjZ1G0QgQAFUK/tho-van-ly-tran-so-01.pdf|title=Thơ văn Lý Trần|last2=Phạm|first2=Tú Châu|last3=Nguyễn|first3=Huệ Chi|last4=Đỗ|first4=Văn Hỷ|last5=Hoàng|first5=Lê|last6=Trần|first6=Thị Băng Thanh|last7=Nguyễn|first7=Đức Vân|publisher=Nhà xuất bản Khoa học Xã hội|year=1977|volume=1|location=Hanoi|pages=58}}</ref> An imperial edict was issued by Vietnam in 1474 forbidding Vietnamese from adopting foreign languages, hairstyles and clothes like that of the Laos, Chams or the Ming "Northerners".<ref>{{cite book|url=https://books.google.com/books?id=ZHD4Asj0FagC&q=vietnam+long++hair+barbarians&pg=PA87|page=87|title=Sources of Vietnamese Tradition|series=Introduction to Asian Civilizations|editor1-first=George|editor1-last=Dutton|editor2-first=Jayne|editor2-last=Werner|editor3-first=John K.|editor3-last=Whitmore|edition=illustrated|publisher=Columbia University Press|date=2012|isbn=978-0231511100}}</ref>

Before 1744, people of both Đàng Ngoài (the north) and Đàng Trong (the south) wore giao lãnh y with thường (a kind of long skirt). Both male and female had loose long hair. In 1744, Lord Nguyễn Phúc Khoát of Đàng Trong (Phú Xuân) decreed that both men and women at his court wear trousers and a gown with buttons down the front. Then, the Nguyễn Lords introduced áo ngũ thân. The members of the Đàng Trong court (southern court) were thus distinguished from the courtiers of the Trịnh Lords in Đàng Ngoài (Đông Kinh), who wore ''áo giao lĩnh'' with long skirts. The partition between two families over the country too long so caused the some major differences in Vietnamese dialect and culture between Northern and Southern Vietnamese.{{Citation needed|date=May 2020}}<gallery class="center"> File:萬國人物之圖 越南人.jpg|Vietnamese people in 1645 through a Japanese painting. File:Sĩ nữ đồ 仕女圖.jpg|A Vietnamese lady in Northern Vietnam, 1600s painting. File:廣南國夷官.jpg|Southern Vietnamese File:安南國犭剌犭雞.jpg|The Vietnamese hunters (Hmong ethnic) in Lê dynasty File:万国来朝图 Annam (安南国) delegates in Beijing in 1761.jpg|Đại Việt delegates under Lê dynasty to Qing China in 1750s (source:Ten Thousand Nations Coming to Pay Tribute). File:Viet in 17th century.jpg| North Vietnamese (left) and South Vietnamese (right) under Lê dynasty in 17th century. File:Giảng học đồ2.jpeg|Confucian class and chess playing house in Tonkin, c. 18th century. File:世界人物圖卷 越南人.jpg|Two women and a child in Hanoi, c. 18th century. File:Mr Nguyen Quy Kinh (1693-1766), Dai Duong teacher of the crown prince, Worshipping house of the Nguyen Kinh family, Tu Liem, Hanoi, 1766 AD, gouache - Vietnam National Museum of Fine Arts - Hanoi, Vietnam - DSC05090.JPG|Nguyen Quy Kinh (1693–1766), imperial tutor to the crown prince. File:Thường dân và quan lại thời Lê trung hưng.jpg|Commoners and mandarins of the Revival Lê dynasty. File:Tranh vẽ các hoạt động của người Việt thời Lê trung hưng.jpg|Paintings of activities of Vietnamese people in the Revival Lê dynasty. File:安南國夷官.jpg|Court dress during the late Lê dynasty </gallery>{{Multiple image | direction = horizontal | image1 = Huang Qing Zhigong Tu - 014.jpg | align = center | caption1 = The Vietnamese civilians in Lê dynasty | image2 = Huang Qing Zhigong Tu - 013.jpg | caption2 = The custom of civil mandarin and his wife, Lê dynasty in 18th century, from Portraits of Periodical Offering. | width = 270 }}

=== Introduction of Christianity === European missionaries had occasionally visited Vietnam for short periods of time, with little impact, beginning in the early sixteenth century. ''Khâm định Việt sử Thông giám cương mục'' recorded the first Christian missionary's name ''Inácio'' in the first year of Nguyên Hoà Emperor (1533) in Nam Định.<ref>[http://hdgmvietnam.com/chi-tiet/hoi-dong-giam-muc-viet-nam-nhat-ky-ad-limina-5-3-2018-32063 Hội đồng Giám mục Việt Nam: Nhật ký Ad Limina 5.3.2018]</ref> From 1580 to 1586, two Portuguese and French missionaries Luis de Fonseca and Grégoire de la Motte worked in Quảng Nam and Quy Nhơn region under lord Nguyễn Hoàng. After the Lê–Mạc War ended and peace was restored in 1593, more missionaries from Spain, Portugal France, Italy and Poland came to Vietnam to spread Christianity. The best known of the early missionaries was Alexandre de Rhodes, a French Jesuit who was sent to Hanoi in 1627, where he quickly learned the language and began preaching in Vietnamese. Initially, Rhodes was well received by the Trinh court, and he reportedly baptized more than 6,000 converts; however, his success probably led to his expulsion in 1630. He is credited with perfecting a romanized system of writing the Vietnamese language (chữ Quốc ngữ) first developed by Francisco de Pina, which was probably developed as the joint effort of several missionaries, including Rhodes. He wrote the first catechism in Vietnamese and published a Vietnamese-Latin-Portuguese dictionary; these works were the first books printed in chữ Quốc ngữ. Chữ Quốc ngữ was used initially only by missionaries; chữ Hán or chữ Nôm continued to be used by the court and the bureaucracy. thumb|Catholic execution in Hanoi 1737 The French later supported the use of chữ Quốc ngữ, which, because of its simplicity, led to a high degree of literacy and a flourishing of Vietnamese literature. After being expelled from Vietnam, Rhodes spent the next thirty years seeking support for his missionary work from the Vatican and the French Roman Catholic hierarchy as well as making several more trips to Vietnam. However, since 1910, Latinized chữ Quốc ngữ was adopted by the French governor as the main writing system of Vietnam,<ref>[http://www.harvard-yenching.org/sites/harvard-yenching.org/files/TRAN%20Thi%20Phuong%20Hoa_Franco%20Vietnamese%20schools2.pdf Franco-Vietnamese schools]</ref> while chữ Hán and chữ Nôm fell into decline. Vietnamese Christianity developed and became stronger before it was cracked down on by Emperor Minh Mạng of the Nguyễn dynasty in the 1820s.

===Science and Philosophy===

The Lê period was the continuously flourishing era of Vietnamese scientific thought and Confucianism scholarship. Nguyễn Trãi was a 15th-century Lê official, author of geography book Dư địa chí, also was a Neo-Confucianist scholar. Lê Quý Đôn was a poet, encyclopedist, and government official, author of the geography book Phủ biên tạp lục. Hải Thượng Lãn Ông was a famous Vietnamese doctor and pharmacist with his full collection 28-volumes Hải Thượng y tông tâm lĩnh about traditional Vietnamese medicine. Matchlock firearms technology also spread from Mughal Empire to Đại Việt in 1516, and was adopted by the Lê army by the 1530s.

===Literature and arts=== Written Chinese was the predominant writing language in Vietnam throughout the Lê dynasty, although written vernacular Vietnamese using chữ Nôm became increasingly popular in the 17th century.<ref name="Holcombe">{{cite book|url=https://books.google.com/books?id=kYKlDQAAQBAJ |title=A History of East Asia |first=Charles |last=Holcombe |publisher=Cambridge University Press |year=2017|isbn=9781107118737 }}</ref>{{rp|207}} To adapt Chinese writings to fit the Vietnamese language, Chinese ideograms were modified to chữ Nôm.<ref name=":0">{{Cite book |last1=Andaya |first1=Barbara Watson |url=https://books.google.com/books?id=0Rh2BgAAQBAJ |title=A History of Early Modern Southeast Asia, 1400-1830 |last2=Andaya |first2=Leonard Y. |date=2015-02-19 |publisher=Cambridge University Press |isbn=978-0-521-88992-6 |pages=125–126 |language=en}}</ref> During the Lê dynasty, various forms of Vietnamese literature and art flourished, including poetry, painting, novels, hát tuồng, chèo, cải lương, and ca trù. Many writers wrote in chữ Hán or chữ Nôm; for example, Nguyễn Du's ''The Tale of Kiều'', Đoàn Thị Điểm's ''Chinh phụ ngâm'', and Nguyễn Gia Thiều's ''Cung oán ngâm khúc''. Even Lê Thánh Tông wrote in both chữ Hán and chữ Nôm.<ref name=":0" />

The art forms of that time prospered and produced items of great artistic value, despite the upheavals and wars. Woodcarving was especially highly developed and produced items that were used for daily use or worship. Many of these items can be seen in the National Museum in Hanoi. <gallery class="center"> File:Tranh miêu tả chùa hoặc miếu thời nhà Lê trung hưng năm 1684-1685. - Their Pagodas or Temples.png|Vietnamese shamanism worshipping ritual at the temple in 1684. File:ThanhCungVanTue.jpg|Woodcut paintings "Thánh Cung vạn tuế" ("Long live his Imperial Majesty") from the 18th-century Nghệ An. File:Vietnamese stoneware vase.jpg|Ceramic stoneware vase, fifteenth century File:La statue de Quan Am dans la pagode But Thap 2.jpg|Statue of Avalokiteshvara Bodhisattva, crimson and gilded wood, Revival Lê dynasty, autumn of Bính Thân year (1656), from Bút Tháp Temple in Bắc Ninh Province. File:DoGo.JPG|Wooden art pieces of the seventeenth century. File:Nghe.jpg|Nghê (mythological beast) figurines, crimson and gilded wood, eighteenth century. File:Legendary lion (Nghe), Lau Thuong Communale house, Phu Tho province, 17th century AD, wood - Vietnam National Museum of Fine Arts - Hanoi, Vietnam - DSC04934.JPG|Nghê decorate in seventeenth century. File:Dragon (Le dynasty, Vietnam).jpg|Dragon of the Later Lê dynasty. File:Buddhanandi, Tay Phuong pagoda, Ha Tay province, 1794 AD, lacquered wood - Vietnam National Museum of Fine Arts - Hanoi, Vietnam - DSC05080.JPG|Buddhanandi statue of the Lê dynasty. File:Tuong gom nghe thoi Canh Hung.png|Ceramic Lion bush, sixteenth century. File:安南鄭政府·寄矫陶瓷器8.jpg|Imperial dish of the Lê dynasty. File:Pot in horse shape, Bat Trang kiln, Hanoi, Restored Le dynasty, 17th-18th century AD, polychrome ceramic - National Museum of Vietnamese History - Hanoi, Vietnam - DSC05424.JPG|Horse figure, 1720. File:Dia trang tri rong thoi Le So.png |Celadon dish from Chu Đậu, 15th century. File:Roc kings, Kien Xuong district, Thai Binh province, 18th century AD, lacquered wood - Vietnam National Museum of Fine Arts - Hanoi, Vietnam - DSC05096.JPG|The Lacquer wood painting at Vua Rộc temple, dedicated to general Đoàn Thượng Công of Lý dynasty in Kien Xuong district, Thái Bình Province, 18th century AD. File:Tranh Đông Hồ - Cá chép.jpg|17th-century Đông Hồ woodcut painting depicts Cá chép (Carp) displays in National Museum of Fine Arts File:Đánh ghen.JPG|17th-century Đông Hồ woodcut painting depicts "Social commentary: Đánh ghen (Jealousy fighting)" in National Museum of Fine Arts File:Five tigers, Hang Trong painting, Hanoi, paper, view 1 - Vietnam National Museum of Fine Arts - Hanoi, Vietnam - DSC05281.JPG|17th-century Hàng Trống woodcut painting depicts Five Tigers "''Ngũ Hổ''" displays in National Museum of Fine Arts </gallery>

==Education and imperial examination system== {{further|Stone stele records of imperial examinations of the Lê and Mạc dynasties}} thumb|right|"Văn quan vinh quy đồ (文官榮歸圖)", The painting of parade ceremony of new civil mandarin in Nghe An province, 18th century [[File:Triumphant return of a civil commander, view 1, Doc Loi temple, Nghe An province, late 18th century, Do (poonah) paper - Vietnam National Museum of Fine Arts - Hanoi, Vietnam - DSC05114.JPG|thumb|right|"Vũ quan vinh quy đồ" (武官榮歸圖), The painting of parade ceremony of new military mandarin returning in glory (榮歸; vinh quy) after the imperial examination.]] <gallery class="center"> File:Tiến sĩ xuất thân 進士出身 - Lê dynasty, Vietnam.jpg|Portrait of Tiến sĩ(進士) parade when successfully passing the examination. File:Văn quan vinh quy đồ 2.jpg|Parade of Tiến sĩ and soldiers in Lê dynasty, 18th century painting. </gallery> In late 1426, Lê Lợi held a small Confucian examination in Đông Kinh, graduated 30 tiến sĩ. From 1431, the court annually held Provincial and metropolitan exams were organized in three sessions. The first session took place in every province, consisted of three questions on the examinee's interpretation of the Four Books, and four on the Classics corpus. Everyone who passed the first session were called ''Sinh đồ'' and ''Hương cống''. The second session took place in the capital one year later, and consisted of a discursive essay, a based Tang poetry, five critical judgments, and one in the style of an edict, an announcement and a memorial. Three days after that, the third session was held by the emperor, consisting of five essays on the Classics, historiography, and contemporary affairs.

From 1486, every mandarin candidates must participated both first and second session to approve the chain. The Le's examination system reflected the Ming's imperial examination.<ref>History of Vietnam from the beginning to early 19th century, Đào Duy Anh 2002</ref>

During the period from 1426 to 1527, the Lê dynasty held 26 Imperial examinations in the capital, graduated 989 tiến sĩ and 20 trạng nguyên.<ref>History of Vietnam, 2017, volume 3</ref> By the 1750s, Neo-Confucianism were declining, the imperial examinations began having surplus graduates, downgrading quality of jinshi and mandarin, corruptions, the court prefer children of noble families to be mandarins that take check, thus made the downfall of Confucian examination system in Vietnam in the late 18th century until the established of Nguyễn dynasty.<ref>History of Vietnam, 2017, p. 567-572</ref>

Scholars and administrators who graduated from the imperial examination system during the Lê dynasty include Nguyễn Bỉnh Khiêm, Nguyễn Thị Duệ, Phùng Khắc Khoan, Lê Quý Đôn, Lương Thế Vinh, and {{ill|Nguyễn Đăng Đạo|zh|阮登道}}.

==Foreign relations== [[File:Ngoại Quốc Đồ - 外國図 - Map of Foreign Countries, Lê dynasty, Vietnam.jpg|thumb|"Ngoại Quốc Đồ" (外國圖), painting of tributary envoys and foreign dignitaries of Champa, Lan Xang, Siam, Myanmar, Demak, Cambodia, Lan Na, Persia and Ryukyu to the Lê dynasty court in Thanh Hóa. (18th-century painting)]]

===China=== In 1428, Lê Lợi established a tributary relationship with the Ming dynasty in exchange for the recognition and formal protection of his kingdom. Xuande Emperor gave Lê Lợi the title ''"An Nam Quốc Vương"'' (King of Annam) and recognized internal Vietnamese independence and sovereignty (which would last until 1526).<ref name="britannica">{{Britannica|333359|Le Loi}}</ref><ref name="asymmetry">{{Cite journal |last=Womack |first=B. |year=2012 |title=Asymmetry and China's Tributary System |journal=The Chinese Journal of International Politics |language=en |volume=5 |issue=1 |pages=37–54 |doi=10.1093/cjip/pos003 |issn=1750-8916}}</ref><ref name="perspectives"/><ref name="transition">{{Cite book |last=Baldanza |first=Kathlene |url=http://ebooks.cambridge.org/ref/id/CBO9781316440551 |title=Ming China and Vietnam: Negotiating Borders in Early Modern Asia |date=2016 |publisher=Cambridge University Press |isbn=978-1-316-44055-1 |location=Cambridge |doi=10.1017/cbo9781316440551.013 |pages=204–210}}</ref> Also part of the tributary relationship was the responsibility of the Ming to provide external military support to the Lê state.<ref name="perspectives">{{cite journal |title=Perspectives on the 1540 Mac Surrender to the Ming |journal=Asia Major |year=2014 |pages=115–146 |first=Kathlene |last=Baldanza |volume=27 |issue=2|jstor=44740553 }}</ref> Ming support for the Lê against the Mạc uprising arrived in 1537.<ref name="perspectives"/> After the 1540 surrender of the Mạc to the Ming, the Ming court ceremonially revoked the Mạc dynasty's status as an independent kingdom and reclassified it as a ''dutongshisi'': a category only slightly higher than a chieftaincy.<ref name="perspectives"/> After 1540, the Ming received tribute from both the Lê dynasty and the Mạc, a state of affairs that continued through the Qing dynasty.<ref name="perspectives"/><ref name="transition"/> From 1647, the Southern Ming reclassified Annam as an independent kingdom, giving Lê Duy Kỳ the title ''"An Nam Quốc Vương"'' (安南国王) again.<ref>《明史·安南傳》</ref> In 1667, the Kangxi Emperor of the Qing empire gave the title An Nam Quốc Vương to Lê Duy Vũ through a successful Vietnamese diplomatic mission.<ref>《清史》</ref> <gallery> File:平定西域獻俘禮圖之安南國.jpg|Vietnamese delegation in Beijing street (Source: "平定西域献俘礼图卷".) File:Luong The Vinh.jpg|Lương Thế Vinh, Vietnamese scholar and mathematician served in Lê Thánh Tông's government from 1463 to 1478. File:Tể Tướng Nguyễn Quán Nho2.jpg|Nguyễn Quán Nho (1638–1708), Vietnamese ambassador to Qing China (1674–1681), served as prime minister (1691–1707) under lord Trịnh Căn. File:Phùng Khắc Khoan2.jpg|Portrait of Phùng Khắc Khoan, the mandarin who led the diplomatic visit to Ming China in 1597.

</gallery>

===Europe=== Vietnamese historiography notes that contact between Vietnam and the Holy See or Vatican was established during the reign of emperor Lê Thế Tông (1572–1599) through a diplomacy letter in Classical Chinese that is held in a Vatican library in the modern day.<ref>''Biên Niên Lịch sử Cổ Trung Đại Việt Nam'' 1987, p. 308</ref>

The seventeenth century was also a period in which European missionaries and merchants became a serious factor in Vietnamese court life and politics. Although both had arrived by the early sixteenth century, neither foreign merchants nor missionaries had much impact on Vietnam before the seventeenth century. The Portuguese, Dutch, English, and French had all established trading posts in Phổ Hiền by 1680. Fighting among the Europeans and opposition by the Vietnamese made the enterprises unprofitable, however, and all of the foreign trading posts were closed by 1800.{{Citation needed|date=May 2020}}

==Economic development== Before 1527, the Imperial court restricted people from foreign trade, mainly focused on agriculture and the local market trade. The period from 1505 to 1527 was politically unstable which disrupted the economy. There were a series of severe famines in Hải Dương prefecture and Kinh Bắc prefecture (Bắc Ninh, Bắc Giang) that occurred in 1517 to 1521 during the reign of Lê Tương Dực.<ref>Phạm Công Trứ, 1993, Đại Việt sử ký toàn thư, volume 15</ref> The 16th century political crisis caused severe damage to Vietnam's agriculture and conscription was required by incessant military campaigns; this was compounded by natural disasters, largely contributed to regular crop failures. The number of landless peasants grew quickly, causing a disproportionate surplus of unemployed labourers in Northern Vietnam. After Mạc Đăng Dung gained power in 1527, he sought to restore the economy by encouraging these unemployed peasants into the city and factories, pursuing massive handicraft and industrial manufacture as well as sea trading. This caused a shift in the economy from one mainly on farming to sea trading from the Red River Delta on the Eastern coast.<ref name=hat>{{cite book|title=Silk for Silver: Dutch-Vietnamese Relations; 1637 – 1700|url=https://books.google.com/books?id=dFFfRz8tBrMC|author=Hoàng Anh Tuấn|publisher=Brill Co.|year=2007|isbn = 978-9004156012}}</ref>

Vietnamese merchants and sailors formed together and built medium-size ships in Hai Mon port (now Hai Phong) and quickly gained dominance in the South China sea trade route, which mostly sailed from Japan to Malacca to sell silk and ceramics. Some of them eventually reached Egypt and Greece under the Ottoman's rule around the 1570s.<ref name="hat" /> After the recapture of Đông Kinh in 1592, the Lê-Trịnh court acknowledged the benefits of oversea trading, and continued to encourage handicraft and industrial manufacture and opened several ports such as Hoi An and Đông Kinh to foreign merchants. About 80% of the population were farmers and peasants; they worked on lands mostly held by ''địa chủ'' (landlords). The economy was devastated in some regions of the country due to two long civil wars, however, in most parts of the country which were unaffected, peace were maintained for a long time, which saw a rise of urbanization and a pre-capitalism society in Vietnam around the late 16th to 18th century.<ref name="hat" />

In contrast to the overpopulation of the Red River Delta, the Thuan Hoa and Quang Nam region were not as dense. Vietnamese people had begun settling in the conquered Cham region at least since the 15th century. After Nguyễn Hoàng was appointed as governor of the southern provinces in 1572, millions migrated south, resulting in new cities and harbors along the coastline. For centuries the Nguyễn dynasty's economy mostly depended on handicraft and industrial manufacture but also international trade.<ref>HA. Tuấn 2007, p.26</ref> Until the later 18th century, due to an epidemic, severe flooding in the Red River Delta, the immense corruption of the government and the rise of the Tây Sơn rebellion in Southern Vietnam that later spread to the entire country, devastated most of the economy and international trading, it played an important role in the collapse of the dynasty.

===Đông Kinh and urban life=== {{See also|Old Quarter, Hanoi}} Đông Kinh (present-day Hanoi) has been the capital of Vietnam since the 11th century. During the Later Lê dynasty it was divided into 13 districts and 239 wards (with 36 main business-trading wards) and communes.<ref>List of prefectures and villages, page 95-98.</ref><ref>Đại Việt địa dư toàn biên, Nguyễn Văn Siêu, p. 364</ref> Since the mid-16th century, Đông Kinh became the silk and ceramic manufacturing center of Southeast Asia. Vietnamese merchants exported to the Ottoman Empire and Safavid Empire, these exports include Tonkinese octagonal bottles with underglaze-cobalt decoration or dishes with peony sprays painted in underglaze-cobalt were considered as good as Chinese products.<ref name="hat" /> Vietnamese ceramics from Bát Tràng villages produced famous high-quality pottery and dishes. With Tomé Pires noting in 1515 "They [The Vietnamese] have porcelain and pottery-some of them great value-and these go from there to China to be sold.Chinese and Japanese traders came to Đông Kinh to buy both high quality silk and raw silk. Besides silk textiles that were made in villages, the majority of them were produced in state-owned factories in Đông Kinh, this was produced for the imperial family, noblemen and foreigners.<ref name="hat" /> thumb|right|Map of Đông Kinh (Hanoi) in 1490, drawn during Hồng Đức reign (Lê Thánh Tông)|273x273px thumb|Vietnamese dancing in Later Le dynasty, 17th century thumb|Traditional game in Hanoi 17th century thumb|Military training in 17th century In 1594, the Imperial court allowed a Western presence in the capital, and encouraged Dutch, Spanish and the British to open trading ports. In 1616, the British established a factory in Đông Kinh, but their business ended in failure due to the pressures from the Lê court, and finally withdrew in 1720.<ref>History of Vietnam, 2017, p. 262-264</ref> During the 17th and 18th 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). Tonkin had been a major industrial and trading center in Asia until the 1730s.<ref>Bruce McFarland Lockhart, William J. Duiker, ''The A to Z of Viêt Nam'', Scarecrow Press, 2010, pages 40, 365–366</ref>

The prosperity during the Le dynasty was described through the urbanization in Tonkin through Western narratives: ''"...Cachao (Đông Kinh) probably had 200,000 houses. The city size was some larger than some of the largest cities in Europe but similar in size to other major Asian cities. It lies along the Red river...there are 36 stone-paved major streets, many foreigners such as Chinese, Japanese, English held their business companies, factories and stores here...the Emperor has three small but magnificent palaces, mostly built by red wood and terracotta bricks, surrounded by 15-feet height wall, and its main gate never opens expect when the Emperor wants to go outside. The Trinh lord and his families live in the 30-meter high Ngũ Long castle, near Tạ Vọng lake, which can be seen at its highest from the Red river..."''<ref>William Dampier, 1688, p. 70–88.</ref>{{Failed verification|date=July 2020}}

<!-- In 1612, the Joseon army encountered a Vietnamese merchant ship from Tonkin wrecked in Jeju Island which carried a large heap of treasure and money. The Koreans killed all the sailors, looted the treasures on board and then falsely reported the ship "was a pirate ship".

(Do not add this back without a legitimate citation.) --> In 1637, the Dutch successfully established commercial and diplomatic relations with Tonkin and maintained their trading station in Đông Kinh until 1700. The lucrative Dutch ‘Vietnamese-silk-for-Japanese-silver trade‘ later also attracted the English and the French to Tonkin in 1672 and early 1682 respectively. The British imported Vietnamese silk around the 1670s, but not regularly. The city had a Chinatown, as well as factories owned by the Dutch and English companies along the Red river.<ref>History of Vietnam, 2017, p. 240</ref>

However, by the last quarter of the 17th century, Tonkin was no longer a profitable trading place. Vietnamese silk no longer reaped a handsome profit in Japan and Vietnamese ceramics proved unmarketable in the insular Southeast Asian markets. In Tonkin, trading conditions also deteriorated rapidly. Subsequently, natural disasters ravaged the economy of the country and a wave of successive famines discouraged local craftsmen from producing goods for export. Worse still, after the protracted civil war with the southern Vietnamese kingdom of Quinam (or Đàng Trong) that ended in 1672, the Tonkinese rulers seemed to be more indifferent towards foreign trade as they were no longer in urgent need of a supply of weapons from the Westerners. Bearing in mind their long-term strategy, especially the prospect of opening up trading relations with China, the Dutch still wanted to maintain their Tonkinese trade despite its current unprofitable state, perceiving that it would be extremely difficult to re-establish the relationship with Tonkin once they left the country.<ref name="hat" /> Despite Dutch persistence, the relationship between the VOC and Tonkin deteriorated rapidly during the last two decades of the 17th century, especially after Chúa (Lord) Trịnh Căn (r. 1682–1709) succeeded to the throne.<ref name="hat" />

===Hội An=== [[File:Tranh cuon Nhat Ban 09 - nho.jpg|thumb|left|Japanese merchant pay tribute to Nguyễn lords at private mansion in Phú Xuân, late 17th century]] [[File:Quang Nam governor House.jpg|thumb|left|Japanese merchant pay tribute to prince Nguyễn Phúc Nguyên at Governor house of Quang Nam in Hội An, late 17th century]] thumb|upright=1.2|Hội An port in 18th century The area of the Quảng Nam river was originally part of Champa but was annexed by Đại Việt by Emperor Thánh Tông. It was opened for foreign merchants for trade and settlement. In 1535 Portuguese explorer and sea captain António de Faria, coming from Da Nang, tried to establish a major trading centre at the port village of Faifo.<ref>Spencer Tucker, [https://books.google.com/books?id=WZry2NaH2_sC&lpg=PA22&dq=Antonio%20de%20Faria%20Faifo&pg=PA22 "Vietnam"], University Press of Kentucky, 1999, {{ISBN|0-8131-0966-3}}, p. 22</ref> Hội An was founded as a trading port by the Nguyễn Lord Nguyễn Hoàng in 1570. The Nguyễn lords were far more interested in commercial activity than the Trịnh lords who ruled the north. As a result, Hội An flourished as a trading port and became the most important trade port on the South China Sea. Captain William Adams, the English sailor and confidant of Tokugawa Ieyasu, is known to have made one trading mission to Hội An in 1617 on a Red Seal Ship.<ref>{{Internet Archive|id=letterswrittenby00mura|name=Letters written by the English residents in Japan, 1611–1623, with other documents on the English trading settlement in Japan in the seventeenth century|page=}}</ref> The early Portuguese Jesuits also had one of their two residences at Hội An.<ref>Roland Jacques ''Portuguese pioneers of Vietnamese linguistics prior to 1650'' 2002 Page 28 "At the time Pina wrote, early 1623, the Jesuits had two main residences, one in Hội An in Quàng Nam, the other at Quy Nhon."</ref> In 1640, Nguyễn lord Nguyễn Phúc Lan ordered to close all Dutch stores and factories in Hội An, ban the Dutch in trading within Cochinchina as he suspected the VOC was allying with the Trịnh lords to the north.<ref>Đào Trinh Nhất 2015, p. 47.</ref> In the 17th century, Polish Jesuit missionary Wojciech Męciński<!--Q9376712--> was believed to visited Hội An.<ref>{{cite web|url=http://misjejezuici.blogspot.com/2012/07/wojciech-mecinski.html|title=Misje Jezuici: Wojciech Męciński|year=2012}}</ref>

In the 18th century, Hội An was considered by Chinese and Japanese merchants to be the best destination for trading in all of Southeast Asia, even Asia.{{Citation needed|date=April 2010}} Trading activities and handicraft manufacturing had been shifted from Tonkin to Hội An.<ref name=hat/> The city also rose to prominence as a powerful and exclusive trade conduit between Europe, China, India, and Japan, especially for the ceramic industry. Shipwreck discoveries have shown that Vietnamese and Asian ceramics were transported from Hội An to as far as Sinai, Egypt.<ref>Li Tana (1998). ''Nguyen Cochinchina'' p. 69.</ref>

Hội An's importance waned sharply at the end of the 18th century because of the collapse of Nguyễn rule (due to the Tây Sơn Rebellion). {{Citation needed|date=April 2010}} Then, with the triumph of Emperor Gia Long, he repaid the French for their aid by giving them exclusive trade rights to the nearby port town of Đà Nẵng. Đà Nẵng became the new centre of trade (and later French influence) in central Vietnam while Hội An became a forgotten backwater. Local historians also say that Hội An lost its status as a desirable trade port due to silting up of the river mouth. The result was that Hội An remained almost untouched by the changes to Vietnam over the next 200 years.

===Gia Định=== 180px|thumb|left|Map of Gia Định in 1790 Beginning in the early 17th century, colonization of the area by Vietnamese settlers gradually isolated the Khmer of the Mekong Delta from their brethren in Cambodia proper and resulted in their becoming a minority in the delta.{{Citation needed|date=January 2012}} In 1623, King Chey Chettha II of Cambodia (1618–28) allowed Vietnamese refugees fleeing the Trịnh–Nguyễn civil war in Vietnam to settle in the area of Prey Nokor and to set up a customs house there.<ref>Mai Thục, ''{{lang|vi|Vương miện lưu đày: truyện lịch sử}}'', Nhà xuất bản Văn hóa – thông tin, 2004, p.580; Giáo sư Hoàng Xuân Việt, Nguyễn Minh Tiến hiệu đính, ''{{lang|vi|Tìm hiểu lịch sử chữ quốc ngữ}}'', Ho Chi Minh City, Công ty Văn hóa Hương Trang, pp.31–33; Helen Jarvis, ''Cambodia'', Clio Press, 1997, p.xxiii.</ref> Increasing waves of Vietnamese settlers, which the Cambodian kingdom could not impede because it was weakened by war with Thailand, slowly Vietnamized the area. In time, Prey Nokor became known as Saigon. Prey Nokor was the most important commercial seaport to the Khmers.{{Citation needed|date=January 2016}} The loss of the city and the rest of the Mekong Delta cut off Cambodia's access to the South China Sea. Subsequently, the only remaining Khmers' sea access was the south-westerly Gulf of Thailand (that is Kampong Saom and Kep).

In 1698, Nguyễn Hữu Cảnh, a Vietnamese noble and explorer, was sent by the Nguyễn rulers of Huế by ship<ref>The first settlers, {{cite web |url=http://www.hochiminhcity.gov.vn/eng |title=HCM CityWeb |access-date=2008-09-25 |url-status=dead |archive-url=https://web.archive.org/web/20080929070012/http://www.hochiminhcity.gov.vn/eng |archive-date=29 September 2008 |df=dmy-all }}</ref> to establish Vietnamese administrative institutions in the area, thus detaching the area from Cambodia, which was not strong enough to intervene. He is often credited with the expansion of Saigon into a significant settlement of Kinh and Hoa people. A large Vauban citadel called Gia Định was built<ref>{{cite web|url=http://www.roughguides.com/destinations/asia/vietnam/ho-chi-minh-city-and-around/|title=Ho Chi Minh City and around Guide – Vietnam Travel|website=Rough Guides|access-date=27 February 2016|archive-url=https://web.archive.org/web/20160305144727/http://www.roughguides.com/destinations/asia/vietnam/ho-chi-minh-city-and-around/|archive-date=5 March 2016|url-status=live}}</ref> by Victor Olivier de Puymanel, one of the Nguyễn Ánh's French mercenaries. The citadel was later destroyed by the French following the Battle of Kỳ Hòa (see Citadel of Saigon).{{Citation needed|date=January 2012}} Initially called Gia Dinh, the Vietnamese city became Saigon in the 18th century. At the time, the population of Gia Định was around 200,000 people with 35,000 households.<ref>{{cite web|url=http://www.hochiminhcity.gov.vn/left/gioi_thieu/lich_su_van_hoa/lich_su/cong_cuoc_khai_duong_mo_loi/lich_su_hinh_thanh_dat_sai_gon?left_menu=1|title=Lịch sử hình thành đất Sài Gòn|publisher=Website Thành phố Hồ Chí Minh|date=22 May 2014|archive-url=https://web.archive.org/web/20100201074131/http://www.hochiminhcity.gov.vn/left/gioi_thieu/lich_su_van_hoa/lich_su/cong_cuoc_khai_duong_mo_loi/lich_su_hinh_thanh_dat_sai_gon?left_menu=1|archive-date=1 February 2010}}</ref>

=={{anchor|List of Lê emperors}}List of emperors== '''Emperors of the Initial Period (Lê Sơ) from 1428 to 1527''' {| class="wikitable" ! ! Temple name ! Posthumous name ! Personal name ! Lineage ! Reign ! Era name ! Tomb ! Events |- | 100px|alt=Statue of Lê Lợi | Thái Tổ (太祖) || Thống Thiên Khải Vận Thánh Đức Thần Công Duệ Văn Anh Vũ Khoan Minh Dũng Trí Hoàng Nghĩa Chí Minh Đại Hiếu Cao Hoàng đế (統天啟運聖德神功睿文英武寬明勇智弘義至明大孝高皇帝) | Lê Lợi (黎利) | Son of Lê Khoáng, Head of {{ill|Lam Sơn (historical region)|lt=Lam Sơn|vi|Lam Sơn}} Circuit. | 1429–1433 || Thuận Thiên (順天) | Vĩnh Lăng Mausoleum, Lam Kinh || Founder of the Later Lê dynasty. Rebelled against Ming rule in 1418. Enthroned as Emperor of Đại Việt in 1428. Re-conquered Cao Bằng, Thái Nguyên and Lai Châu from local chieftains. |- | 100px|alt=Dynastic coin | Thái Tông (太宗) || Kế Thiên Thể Đạo Hiển Đức Thánh Công Khâm Minh Văn Tư Anh Duệ Triết Chiêu Hiến Kiến Trung Văn Hoàng đế (繼天體道顯德功欽明文思英睿仁哲昭憲建中文皇帝) | Lê Nguyên Long (黎元龍) | Son of Emperor Thái Tổ | 1433–42 (2) || Thiệu Bình (紹平 1434 – 1439), Đại Bảo (大寶 1440 – 1442) | Hựu Lăng, Lam Kinh || Campaigns against Lan Xang (1437–1441). Died mysteriously while visiting the Lychee garden (Lệ Chi Viên) of Nguyễn Trãi with Trãi's mistress Nguyễn Thị Lộ, resulting in Nguyễn Trãi's accusation and death (Mystery of Lệ Chi Viên). |- |100px|alt=Dynastic coin | Nhân Tông (仁宗) || Khâm Văn Nhân Hiếu Tuyên Minh Thông Duệ Tuyên Hoàng đế (欽文仁孝宣明聰睿宣皇帝) | Lê Bang Cơ (黎邦基) | Son of Emperor Thái Tông | 1442–1459 (3) || Thái Hòa (太和 1443 – 1453), Diên Ninh (延寧 1454 – 1459) | Mục Lăng || Empress Tuyên Từ ruled as regent and was de facto ruler from 1444 to 1454. War with Champa in 1446. Both the Empress Regent and Nhân Tông were murdered by Duke Lê Nghi Dân. |- | | Lê Nghi Dân (黎宜民) || Thiên Hưng Đế (天興帝) | | Son of Emperor Thái Tông | 1459–1460 || Thiên Hưng (天興 1459–1460) | || Deposed and killed by the ministers. |- |100px|alt= | Thánh Tông (聖宗) || Sùng Thiên Quảng Vận Cao Minh Quang Chính Chí Đức Đại Công Thánh Văn Thần Vũ Đạt Hiếu Thuần Hoàng đế (崇天廣運高明光正至德大功聖文神武達孝淳皇帝) | Lê Tư Thành (黎思誠) | Son of Emperor Thái Tông | 1460–97 (4) || Quang Thuận (光順 1460–1469), Hồng Đức (洪德 1470–1497) | Chiêu Lăng|| Conquered Champa and captured its capital Vijaya (Champa) in 1471. Victorious wars with Muang Phuan and Lan Xang (1478-1480) . Major administrative, education, economic and legal reforms. Hồng Đức era was viewed as the apex of the House of Lê. |- |100px|alt=Dynastic coins | Hiến Tông (憲宗) || Thể Thiên Ngưng Đạo Mậu Đức Chí Nhân Chiêu Văn Thiệu Vũ Tuyên Triết Khâm Thành Chương Hiếu Duệ Hoàng Đế (體天凝道懋德至仁昭文紹武宣哲欽聖彰孝睿皇帝) | Lê Tranh | Son of Emperor Thánh Tông | 1497–1504 (5) || Cảnh Thống (景統) | Dụ Lăng|| Maintained the works of the Hồng Đức era |- | | Túc Tông (肅宗) || Chiêu Nghĩa Hiển Nhân Ôn Cung Uyên Mặc Hiếu Doãn Cung Khâm Hoàng đế (昭義顯仁溫恭淵默惇孝允恭欽皇帝) | Lê Thuần (黎㵮) | Son of Emperor Hiến Tông | 1504–1505 (6) || Tự Hoàng (嗣皇) | Kính Lăng|| Reigned for six months (July 1504 - January 1505) before dying of illness |- | 100px|alt=Dynastic coins | Lê Uy Mục || Mẫn Lệ công (愍厲公) | Lê Tuấn (黎濬) | Son of Emperor Hiến Tông | 1504–1509 (7) || Đoan Khánh (端慶) | An Lăng || Rule is deeply unpopular. Labelled by the Ming dynasty as the Evil king/Quỷ vương (鬼王) |- |100px|alt=Dynastic coins | Lê Tương Dực || Linh Ẩn vương (靈隱王) | Lê Oanh (黎瀠) | Son of Prince Lê Tân of Emperor Thánh Tông | 1509–1516 (8) || Hồng Thuận (洪順) | Nguyên Lăng|| Political and education reforms. Late rule marred by various rebellions (Trần Tuân, 1511; Trần Cảo, 1516) and political crises. Assassinated by general Trịnh Duy Sản. |- | |Lê Quang Trị<br/>Lê Bảng<br/>Lê Do | | | Descendants of Lê Thái Tông | 1516<br/>1518-1519 | | | Lê Quang Trị was installed amidst a political dispute, he kept the throne for only three days in May 1516 and was killed by general Trịnh Duy Đại. From September 1518 to March 1519, Lê Bảng was installed and killed by the warlord Trịnh Tuy. Lê Do was installed by Trịnh Tuy, he was killed by Chiêu Tông-Mặc Đăng Dung forces in July 1519. |- |100px|alt=Dynastic coins | Chiêu Tông (昭宗) || Thần Hoàng đế (神皇帝) | Lê Y (黎椅) | Son of Lê Sùng, brother of Emperor Tương Dực | 1517–1522 (9) || Quang Thiệu (光紹) | Vĩnh Hưng Lăng|| Rule plagued by civil war. Murdered by Mạc Đăng Dung in 1525 |- |100px|alt=Lê Cung Hoàng | Cung Hoàng (恭皇) || Cung Hoàng đế (恭皇帝) | Lê Xuân (黎椿) | Son of Lê Sùng, brother of Emperor Tương Dực | 1522–1527 (10) || Thống Nguyên (統元) | Hoa Dương lăng|| Propped up by Mạc Đăng Dung, forced to hang himself. |- |}

'''Emperors of the Restored Period (Lê Trung Hưng) from 1533 to 1789''' {| class="wikitable" ! ! Temple name ! Posthumous name ! Personal name ! Lineage ! Reign ! Era name ! Tomb ! Events |- | 100 px|alt=Dynastic coins | Trang Tông (莊宗) || Dụ Hoàng đế (裕皇帝) | Lê Ninh (黎寧) | Son of Emperor Chiêu Tông | 1533–1548 (11) || Nguyên Hòa (元和) | Cảnh lăng || Escaped from house arrest to Laos in 1527. In 1533, Lê loyalists led by Nguyễn Kim installed Lê Ninh as Emperor in-exile. Jiajing Emperor of Ming dynasty sent 110,000 soldiers to help the Lê family restore the throne in 1536 but Mạc Đăng Dung made a pact with the Ming in 1540, beginning the Lê-Mạc war. Chiêu Tông ruled from his court in Vạn Lại, Thanh Hóa. |- | | Trung Tông (中宗) || Vũ Hoàng đế (武皇帝) | Lê Huyên (黎暄) | Son of Emperor Trang Tông | 1548–1556 (12) || Thuận Bình (顺平) | Diên lăng || Vạn Lại court with Trịnh Kiểm as de facto ruler. Lê army recaptured Thuận Hóa and Quảng Nam from Mạc in 1553. Trung Tông died without an heir. |- | | Anh Tông (英宗) || Tuấn Hoàng đế (峻皇帝) | Lê Duy Bang (黎維邦) | Descendant of Lê Trừ, the second brother of Lê Lợi | 1556–1573 (13) || Thiên Hựu (天祐 1557), Chính Trị (正治 1558 – 1571), Hồng Phúc (洪福 1572) | Bố Vệ lăng || Vạn Lại court. Nguyễn clan led by Nguyễn Hoàng granted their fiefs in Thuận Hóa and Quảng Nam. War of succession between Trịnh Kiểm's son Trịnh Tùng and Trịnh Cối. Anh Tông plotted against the Trịnh and was killed by Trịnh Tùng. |- | | Thế Tông (世宗) || Tích Thuần Cương Chính Dũng Quả Nghị Hoàng đế (積純剛正勇果毅皇帝) | Lê Duy Đàm (黎維潭) | Son Emperor Anh Tông | 1573–99 (14) || Gia Thái (嘉泰 1573 – 1577), Quang Hưng (光興 1578 – 1599) | Hoa Nhạc lăng || Installed by Trịnh Tùng when he was 5 years old. Recaptured Đông Kinh from the Mạc dynasty in 1592. Trịnh Tùng was de facto ruler. |- | | Kính Tông (敬宗) || Hiển Nhân Dụ Khánh Tuy Phúc Huệ Hoàng đế (显仁裕庆绥福惠皇帝),<ref>Đại Việt Sử ký toàn thư, Kỷ Nhà Lê, Kính Tông Huệ Hoàng Đế.</ref> Giản Huy Hoàng đế (簡輝皇帝) | Lê Duy Tân (黎維新) | Son of Emperor Thế Tông | 1599–1619 (15) || Thận Đức (慎德 1600 – 1601), Hoằng Định (弘定 1601 – 1619) | || Deposed and forced to commit suicide by Trịnh Tùng following a court plot. |- | | Thần Tông (神宗) || Uyên Hoàng đế (淵皇帝) | Lê Duy Kỳ (黎維祺) | Son of Emperor Kính Tông and Empress Ngọc Trinh, Trịnh Tùng's daughter. | 1619–1643, 1649–1662 (16) || Vĩnh Tộ (永祚 9/1619 – 1628), Đức Long (德隆 1629 – 1634), Dương Hòa (陽和 1635 – 9/1643), Khánh Đức (慶德 10/1649 – 1652), Thịnh Đức (盛德 1653 – 1657), Vĩnh Thọ (永壽 1658 – 8/1662), Vạn Khánh (萬慶 9/1662) | Quần Ngọc lăng|| First Trịnh-Nguyễn War broke out in 1627. Became Emperor regent in 1643 when his son Lê Duy Hựu was enthroned. Second rule from 1649 after his son's death. Trịnh Lords were de facto rulers. |- | | Chân Tông (真宗) || Thuận Hoàng đế (順皇帝) | Lê Duy Hựu (黎維祐) | Son of Emperor Thần Tông | 1643–1649 (17) || Phúc Thái (福泰) | Hoa Phố lăng || Trịnh Tráng was de facto ruler. |- | | Huyền Tông (玄宗) || Mục Hoàng đế (穆皇帝) | Lê Duy Vũ (黎維禑) | Son of Emperor Thần Tông | 1662–1671 (18) || Cảnh Trị (景治) | An Lăng || Married to Empress Ngọc Áng, Trịnh Tạc's daughter. Died at age 17 without an heir. Trịnh Tạc was de facto ruler. |- | | Gia Tông (嘉宗) || Khoan Minh Mẫn Đạt Anh Quả Huy Nhu Khắc Nhân Đốc Nghĩa Mỹ Hoàng đế (寬明敏達英果徽柔克仁篤義美皇帝) | Lê Duy Cối (黎維禬) | Son of Emperor Thần Tông | 1671–1675 (19) || Dương Đức (陽德 1672 – 1674), Đức Nguyên (德元 1674 – 1675) | Phúc An lăng || Adopted by Trịnh Tạc at early age. Enthroned when he was 10 and died of cholera 5 years later. Trịnh Tạc was de facto ruler. |- | 100px|alt=Dynastic coin | Hy Tông (熙宗) || Chương Hoàng đế (章皇帝) | Lê Duy Cáp (黎維祫) | Son of Emperor Thần Tông | 1675–1705 (20) || Vĩnh Trị (永治 1676 – 1680), Chính Hoà (正和 1680 – 1705) | Phú lăng || War with the Nguyễn Lords in Cochinchina over, the last remnants of Mạc dynasty and Bầu lords were conquered. Trịnh Tạc and Trịnh Căn were de facto rulers. |- | | Dụ Tông (裕宗) || Thuần Chính Huy Nhu Ôn Giản Từ Tường Khoan Huệ Tôn Mẫu Hòa Hoàng đế (純正徽柔溫簡慈祥寬惠遜敏和皇帝) | Lê Duy Đường (黎維禟) | Son of Emperor Hy Tông | 1705–1729 (21) || Vĩnh Thịnh (永盛 1706 – 1719), Bảo Thái (保泰 1720 – 1729) | Kim Thạch || The Lê court recognized the Manchu Qing legitimates over China, Kangxi Emperor sent envoy and gave the title ''An Nam quốc vương'' 安南国王 (King of Annam) for Dụ Tông in 1718.<ref>Ngô Cao Lãng, ''Lịch triều tạp kỷ'', book 2 (volume 1, p. 175).</ref> Trịnh Lords were de facto rulers. Deposed by Trịnh Cương. |- | | || | Lê Duy Phường (黎維祊) | Son of Emperor Dụ Tông and Empress Ngọc Trang, aunt of Trịnh Cương. | 1732–1735 (22) || Vĩnh Khánh (永慶) | Kim Lũ || Deposed by and killed by Trịnh Giang. Posthumously named by the condescending title ''Hôn Đức công'' (Duke of Ambiguous Virtues) |- | | Thuần Tông (純宗) || Giản Hoàng đế (簡皇帝) | Lê Duy Tường (黎維祥) | Son of Emperor Dụ Tông | 1732–1735 (23) || Long Đức (龍德) | Bình Ngô Lăng|| Trịnh Giang was de facto ruler |- | | Ý Tông (懿宗) || Ôn Gia Trang Túc Khải Túy Minh Mẫn Khoan Hồng Uyên Duệ Huy Hoàng đế (溫嘉莊肅愷悌通敏寬洪淵睿徽皇帝) | Lê Duy Thận (黎維祳) | Son of Emperor Thuần Tông | 1735–1740 (24) || Vĩnh Hựu (永佑) | Phù Lê lăng|| Forced to abdicate by Lord Trịnh Doanh. The last Thái thượng hoàng (retired emperor) of Vietnam. |- |100px|alt=Dynastic coin | Hiển Tông (顯宗) || Vĩnh Hoàng đế (永皇帝) | Lê Duy Diêu (黎維祧) | Son of Emperor Thuần Tông | 1740–1786 (25) || Cảnh Hưng (景興) | Bàn Thạch lăng|| Rebellions by Prince Lê Duy Mật (1740-1770) and Phạm Công Chất (1767-1769). Relationship with the Trịnh Lordship deteriorated after Trịnh Doanh's death in 1767. Crown prince Lê Duy Vĩ killed by Trịnh Sâm who planned to abolish the Lê Throne. Tây Sơn Rebellion broke out in Cochinchina in 1771, weakening the Nguyễn Lords. Trịnh Sâm attacked the Đàng Trong realm and captured Thuận Hóa in 1774. Royal Guards rebellion (1782-1784) after Trịnh Sâm's death led to unrest. Tây Sơn troops under Nguyễn Huệ began northern campaign, captured Thăng Long in 1786. |- |100px|alt=Deposed Emperor Lê Chiêu Thống meeting with Chinese delegations to seek help | || Mẫn Hoàng đế (愍皇帝) | Lê Duy Kỳ (黎維祁) | Son of Crown Prince Lê Duy Vĩ of Emperor Hiển Tông | 1786–1789 (26) || Chiêu Thống (昭統) | Hoa Dương lăng|| Enthroned under Nguyễn Huệ's supervision. Defeated pro-Trịnh forces with help of warlord Nguyễn Hữu Chỉnh. A second Tây Sơn northern campaign captured Thăng Long in 1787. Chiêu Thống sought help from the Qing dynasty but was defeated in the Battle of Ngọc Hồi-Đống Đa in 1789. Went to asylum and died in Beijing in 1793. |- |}

==See also== *List of Vietnamese dynasties

==Notes== {{notelist}}

==Citations== {{reflist}}

==References== {{refbegin|indent=yes|2}} * {{Citation |last=Andrade |first=Tonio |year=2016 |title=The Gunpowder Age: China, Military Innovation, and the Rise of the West in World History |publisher=Princeton University Press |isbn=978-0-691-13597-7}} *{{cite book|title=A History of Vietnam: From Hong Bang to Tu Duc|last=Chapuis|first=Oscar|publisher=Greenwood Publishing Group|year=1995|isbn=0-313-29622-7|pages=113–119|url=https://books.google.com/books?id=Jskyi00bspcC&q=Southern+and+Northern+Dynasties+of+Vietnam&pg=PA113}} *{{cite book |last=Dampier|first=William |title=A supplement to the Voyages Round the World |url=https://archive.org/details/cihm_29536/page/n5/mode/2up |url-access=registration |date=1688 |publisher=London : Printed for James and John Knapton ... |location= England|isbn=9780665295362 }} *{{Citation |author=Đại Việt's Office of History |title=Đại Việt sử ký toàn thư |edition=Nội các quan bản |year=1993 |language=vi |publisher=Social Science Publishing House |location=Hanoi}} *{{cite book |last1=Dupuy |first1=R. Ernest |last2=Dupuy |first2=Trevor N. |title=The Harper Encyclopedia of Military History: From 3500 B.C. to the Present |url=https://archive.org/details/harperencycloped0000dupu |url-access=registration |date=1993 |publisher=HarperCollins |location=New York |isbn=0-06-270056-1 |edition=Fourth}} *{{cite book |last1=Dutton |first1=George |title=The Tay Son Uprising: Society and Rebellion in Eighteenth-Century Vietnam (Southeast Asia: Politics, Meaning, and Memory) |date=2006 |publisher=University of Hawaii Press |location=Honolulu |isbn=978-0-8248-2984-1 |url-access=registration |url=https://archive.org/details/taysonuprisingso0000dutt}} * {{cite book |last1=Juergensmeyer |first1=Mark |author-link1=Mark Juergensmeyer |last2=Roof |first2=Wade Clark |title=Encyclopedia of Global Religion |url=https://books.google.com/books?id=WwJzAwAAQBAJ&pg=PA1210 |year=2011 |publisher=SAGE Publications |isbn=978-1-4522-6656-5}} *{{cite book|last= Li|first=Tana|chapter=8 EPIDEMICS, TRADE, AND LOCAL WORSHIP IN VIETNAM, LEIZHOU PENINSULA, AND HAINAN ISLAND|title=Imperial China and Its Southern Neighbours|series=CHINA SOUTHEAST ASIA History|year=2015|publisher=Institute of Southeast Asian Studies|isbn=978-9814620536|chapter-url=https://books.google.com/books?id=BB1qDwAAQBAJ&dq=nanhai+eunuchs+men+made&pg=PT162|edition= illustrated, reprint|editor1-last=Mair|editor1-first= Victor H|editor2-last=Kelley|editor2-first= Liam|access-date=5 January 2019}} * {{cite book |last=McLeod |first=Mark W. |title=The Vietnamese response to French intervention, 1862–1874 |publisher=Praeger |year=1991 |isbn=0-275-93562-0 |location=New York}} * {{cite book |last=Schliesinger |first=Joachim |title=Ethnic Groups of Cambodia Vol 3: Profile of Austro-Thai and Sinitic-Speaking Peoples |url=https://books.google.com/books?id=ayUjBgAAQBAJ&pg=PA18 |date=11 January 2015 |publisher=Booksmango |isbn=978-1-63323-240-2}} *{{cite book|last=Shin |first= Leo K.|chapter=5 Ming China and Its Border with Annam |title=The Chinese State at the Borders|year=2007|publisher=UBC Press|isbn=978-0774813334|url=https://books.google.com/books?id=pFzhWyoYG_wC|edition=illustrated|editor-last=Lary|editor-first=Diana |access-date=4 January 2013}} *{{cite book|author=Trần Trọng Kim|author-link=Trần Trọng Kim|year=2005|title=Việt Nam sử lược (A Brief History of Vietnam)|publisher=Ho Chi Minh City General Publishing House|place=Ho Chi Minh City|language=vi}} * {{cite book |author=Tạ Chí Đại Trường |author-link=Tạ Chí Đại Trường |title=Lịch sử Nội Chiến Việt Nam 1771–1802 |publisher=Nhà xuất bản Văn Sử Học |place=Sài Gòn |year=1973 |language=vi}} *{{cite book |last=Taouti |first=Seddik |chapter=The Forgotten Muslims of Kampuchea and Viet Nam |title=Readings on Islam in Southeast Asia |editor=Datuk Ahmad Ibrahim |editor2=Yasmin Hussain |editor3-first=Sharon |editor3-last=Siddique |year=1985 |publisher=Institute of Southeast Asian Studies |isbn=9971988089 |pages=193–202 }} *{{cite book|last1=Taylor|first1=K. W.|title=A History of the Vietnamese|date=2013|publisher=Cambridge University Press|isbn=978-0521875868|url=https://books.google.com/books?id=P2HP31kOSA4C&q=history+of+vietnam}} * {{cite book |author=Thụy Khuê |title=Vua Gia Long và người Pháp: khảo sát về ảnh hưởng của người Pháp trong giai đoạn triều Nguyễn. |publisher=Nhà xuất bản Hồng Đức |year=2017 |isbn=978-6049517655 |language=vi |oclc=1079783921}} *{{cite web |last1=Theobald |first1=Ulrich |title=Vietnam |url=http://www.chinaknowledge.de/History/Altera/vietnam.html |website=ChinaKnowledge.de - An Encyclopaedia on Chinese History, Literature and Art |publisher=Ulrich Theobald |access-date=27 June 2019 |date=2018}} * {{cite book|author=Khánh Trần |title=The Ethnic Chinese and Economic Development in Vietnam |publisher=Institute of Southeast Asian Studies |year=1993 |isbn=9789813016675 |url=https://www.cambridge.org/core/books/ethnic-chinese-and-economic-development-in-vietnam/638085AB7D0A0A6FB28F2C2EFB93C838 |access-date=26 April 2012}} *{{cite book|last=Tsai|first=Shih-Shan Henry|title=The Eunuchs in the Ming Dynasty (Ming Tai Huan Kuan)|year=1996|publisher=SUNY Press|isbn=0791426874|url=https://books.google.com/books?id=Ka6jNJcX_ygC|edition=illustrated|access-date=5 January 2013}} * {{citation |last=Wade |first=Geoff |title=Southeast Asia in the Ming Shi-lu: an open access resource |url=http://www.epress.nus.edu.sg/msl/ |publisher=Asia Research Institute and the Singapore E-Press, National University of Singapore |year=2005 |access-date=6 November 2012}} *{{cite book|last=Whitmore|first=John K.|chapter=Chapter 6 Vân Đồn, the 'Mạc Gap,' and the End of the Jiaozhi Ocean System: Trade and State in Đại Việt, Circa 1450–1550|title=The Tongking Gulf Through History|year=2011|publisher=University of Pennsylvania Press|isbn=978-0812243369|url=https://books.google.com/books?id=7mlKjn3FfoMC|edition=illustrated|access-date=4 January 2013|editor1-first=Nola|editor1-last=Cooke|editor2-first=Tana|editor2-last=Li|editor3-first=James|editor3-last=Anderson}} {{refend}}

== Further reading == *{{citation |surname = Trần |given = Thị Vinh |pages = 212–265 |title = Lịch Sử Việt Nam: Volume 4, History of Vietnam from XVII to XVIII century |editor-surname1 = Nguyễn |editor-given1 = Ngọc Mão |location = Institute of History of Vietnam |publisher = Social Science |year = 2017 |id = {{EAN|893-5-075-40833-3}} |postscript = . }} *{{citation |surname = Ngô |given = Sĩ Liên |title = Đại Việt Sử Ký toàn thư: Book XI |editor-given1 = Duy Anh |editor-surname1 = Đào |location = Imperial library of Vietnam |publisher = Lê Dynasty |year = 1993 |isbn = 978-5-020-18267-7 |postscript = . }} *[http://www.guoxue.com/shibu/24shi/mingshi/ms_321.htm 明史·安南傳]

== External links == {{Library resources box}} * [https://www.britannica.com/topic/Later-Le-dynasty Lê dynasty] on ''Encyclopædia Britannica'' * [https://www.informatik.uni-leipzig.de/~duc/sach/hoangle/index.html Hoàng Lê Nhất Thống Chí ''History of the Lê Dynasty''] on Leipzig University Library * [https://www.globalsecurity.org/military/world/vietnam/dai-viet-le.htm Lê Dynasty] on GlobalSecurity.org

{{s-start}} {{s-bef|before=Fourth Chinese rule}} {{s-ttl|title=Dynasty of Vietnam|years=1428–1789}} {{s-aft|after=Tây Sơn dynasty}} {{end}} {{Emperors of the Le dynasty}} {{Authority control}}

{{DEFAULTSORT:Le dynasty}} Category:Later Lê dynasty Category:Revival Lê dynasty Category:Vietnamese dynasties Category:1428 establishments Category:1428 establishments in Asia Category:1527 disestablishments in Asia Category:1533 establishments in Vietnam Category:1789 disestablishments Category:Former monarchies of Asia Category:States and territories established in 1428 Category:States and territories established in 1533 Category:Military dictatorships Category:Tributaries of Imperial China Category:Confucian dynasties Category:States and territories disestablished in 1789