The Vietnamese Civil War of 1787–1802, or the Tây Sơn–Nguyễn Civil War of 1787–1802, was a conflict fought between two Vietnamese factions, the Tayson in the north, and the Nguyen loyalists in the south, both intended to unify the realm. Following the Tây Sơn rebellion (1771–1789), the kingdom of Dai Viet was partitioned into three regions unionized by the Tây Sơn brothers Nguyen Nhac, Nguyen Hue and Nguyen Lu. Nguyen Phuc Anh, a Nguyen Prince and descendant of the annihilated Nguyen lord family that once been overthrown by the Tây Sơn in the 1770s, returned to Vietnam in 1787 after spending years of exile in Siam, to rally loyalists for his support against the Tây Sơn. With intercessions from his Alliance, Nguyen Anh and the Nguyen loyalists effectively defeated the Tây Sơn, dismantled th