Mạc dynasty
The area, Cao Bằng (), was the stronghold of the last years of the Mạc dynasty after their 1592 defeat at the hands of the Trịnh lords. During the 19th century the area was resistant to the Nguyễn government.