The civil war involving the Lê-Trịnh and Mạc dynasties resulted in 1592, when the army of Trịnh Tùng conquered Hanoi and executed king Mạc Mậu Hợp. Survivors of your Mạc royal spouse and children fled towards the northern mountains within the province of Cao Bằng and continued to rule there until finally 1677 when Trịnh Tạc co