 In 1408, the Chinese Minh dynasty attacked and occupied Vietnam, changing Đông Đô's name to Dongguan (, "Eastern Gateway"), or Đông Quan in Sino-Vietnamese.In 1428, the Vietnamese overthrew the Chinese under the leadership of Lê Lợi, who later founded the Lê dynasty and renamed Đông Quan Đông Kinh (, "Eastern Capital") or Tonkin.Right after the end of the Tây Sơn dynasty, it was named Bắc Thành (, "Northern Citadel").