 The Trịnh were much stronger, with a larger population, economy and army, but they were unable to vanquish the Nguyễn, who had built two defensive stone walls and invested in Portuguese artillery.The Trịnh–Nguyễn War lasted from 1627 until 1672.The Trịnh army staged at least seven offensives, all of which failed to capture Phú Xuân.