In 1786, the Tây Sơn general Nguyễn Huệ led his force to northern Vietnam and destroyed the house of the Trịnh lords.
The next year, 1787, the Lê emperor Lê Hiển Tông died of natural causes, and Nguyễn Huệ installed Lê Duy Khiêm on the throne as emperor Lê Chiêu Thống and then he withdrew almost all his troops to Phú Xuân.
Trịnh Lords members took advantage of Nguyễn Huệ's absence.
Two Trinh heirs, Trịnh Bồng and Trịnh Lệ, appeared and made their claims to the lord throne.
emperor Lê Chiêu Thống appointed Trinh Bong as the next Trịnh lord which triggered Trịnh Lệ to revolt.
After suppressing Trịnh Lệ forces, Trịnh Bồng became the most powerful man in north Vietnam but his leadership was bad.
The entirety of north Vietnam sank into chaos, thus forcing King Lê Chiêu Thống to ask for assistance from Nguyễn Hữu Chỉnh, Tây Sơn governor of Nghệ An.
Nguyen Huu Chinh led an army marched north, easily defeated Trinh army, forced Trinh Bong to flee and captured Thăng Long.
After pacifying the region, Nguyen Huu Chinh abused power for his own interests, thus impinging Nguyễn Huệ's political status.

After learning about actions of Nguyễn Hữu Chỉnh, Nguyễn Huệ sent north a general named Vũ Văn Nhậm with an army to attack Thăng Long (now Hanoi).
Vu Van Nham swiftly defeated and killed Nguyen Huu Chinh and occupied Thăng Long, but then he took the power himself.
Nguyễn Huệ sent two other generals to suppress Vu Van Nham and recaptured Thăng Long.
Meanwhile, Lê Chiêu Thống fled to the furthest north of Vietnam and refused Nguyễn Huệ's invitations to return.
He gathered a small army of Lê dynasty loyalists and sent his family to China to seek aid from the Qianlong Emperor of the Qing Empire.
The Qianlong Emperor agreed and sent a massive army to north Vietnam.
Under the banner of the Lê king, the large Qing army easily drove Tây Sơn out of north Vietnam and took over Thăng Long.
After the Qing occupation of northern Vietnam, the Qing viceroy Sun Shiyi reinstalled Lê Chiêu Thống as a puppet ruler.
Although Lê Chiêu Thống did not have much ruling power, he began taking a bloody revenge on Tây Sơn supporters and forced people to supply him food in spite of war and famine.

The actions of Lê Chiêu Thống and the Qing invasion gave Nguyễn Huệ a good chance to officially take the throne and gain popularity among northern Vietnamese people.
On 22 December 1788, Nguyễn Huệ proclaimed himself emperor Quang Trung and formally declared that the Lê dynasty had ended.
He then led an army march north.
Although the Tây Sơn army was smaller, they defeated the unprepared Qing troops in a series of battles during the 1789 Lunar New Year celebration and forced the rest of Qing army to flee in confusion.
Lê Chiêu Thống fled to China which marked the end of the Lê dynasty.

Lê Chiêu Thống and high ranking Lê loyalists fled Vietnam for asylum in Qing China and went to Beijing.
Lê Chiêu Thống 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.
Some Lê loyalists were also sent to Central Asia in Urumqi.
Modern descendants of the Lê monarch can be traced to southern Vietnam and Urumqi, Xinjiang.
In 1786, the Tây Sơn general Nguyễn Huệ led his force to northern Vietnam and destroyed the house of the Trịnh lords. The next year, 1787, the Lê emperor Lê Hiển Tông died of natural causes, and Nguyễn Huệ installed Lê Duy Khiêm on the throne as emperor Lê Chiêu Thống and then he withdrew almost all his troops to Phú Xuân. Trịnh Lords members took advantage of Nguyễn Huệ's absence. Two Trinh heirs, Trịnh Bồng and Trịnh Lệ, appeared and made their claims to the lord throne. emperor Lê Chiêu Thống appointed Trinh Bong as the next Trịnh lord which triggered Trịnh Lệ to revolt. After suppressing Trịnh Lệ forces, Trịnh Bồng became the most powerful man in north Vietnam but his leadership was bad. The entirety of north Vietnam sank into chaos, thus forcing King Lê Chiêu Thống to ask for assistance from Nguyễn Hữu Chỉnh, Tây Sơn governor of Nghệ An. Nguyen Huu Chinh led an army marched north, easily defeated Trinh army, forced Trinh Bong to flee and captured Thăng Long. After pacifying the region, Nguyen Huu Chinh abused power for his own interests, thus impinging Nguyễn Huệ's political status.
After learning about actions of Nguyễn Hữu Chỉnh, Nguyễn Huệ sent north a general named Vũ Văn Nhậm with an army to attack Thăng Long (now Hanoi). Vu Van Nham swiftly defeated and killed Nguyen Huu Chinh and occupied Thăng Long, but then he took the power himself. Nguyễn Huệ sent two other generals to suppress Vu Van Nham and recaptured Thăng Long. Meanwhile, Lê Chiêu Thống fled to the furthest north of Vietnam and refused Nguyễn Huệ's invitations to return. He gathered a small army of Lê dynasty loyalists and sent his family to China to seek aid from the Qianlong Emperor of the Qing Empire. The Qianlong Emperor agreed and sent a massive army to north Vietnam. Under the banner of the Lê king, the large Qing army easily drove Tây Sơn out of north Vietnam and took over Thăng Long. After the Qing occupation of northern Vietnam, the Qing viceroy Sun Shiyi reinstalled Lê Chiêu Thống as a puppet ruler. Although Lê Chiêu Thống did not have much ruling power, he began taking a bloody revenge on Tây Sơn supporters and forced people to supply him food in spite of war and famine.
The actions of Lê Chiêu Thống and the Qing invasion gave Nguyễn Huệ a good chance to officially take the throne and gain popularity among northern Vietnamese people. On 22 December 1788, Nguyễn Huệ proclaimed himself emperor Quang Trung and formally declared that the Lê dynasty had ended. He then led an army march north. Although the Tây Sơn army was smaller, they defeated the unprepared Qing troops in a series of battles during the 1789 Lunar New Year celebration and forced the rest of Qing army to flee in confusion. Lê Chiêu Thống fled to China which marked the end of the Lê dynasty.
Lê Chiêu Thống and high ranking Lê loyalists fled Vietnam for asylum in Qing China and went to Beijing. Lê Chiêu Thống 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. Some Lê loyalists were also sent to Central Asia in Urumqi. Modern descendants of the Lê monarch can be traced to southern Vietnam and Urumqi, Xinjiang.
Lê Chiêu Thống