The advent of the Modern Age brought a period of instability and war for the city. New state boundaries were drawn that left Donostia located close to Spain's border with France; thicker and more sophisticated walls were erected, with the town becoming involved in the 1521–1524 military campaigns that formed part of the Spanish conquest of Navarre. The town provided critical naval help to Emperor Charles V during the siege of Hondarribia, which earned the town the titles "Muy Noble y Muy Leal", recorded on its coat of arms. The town also aided the monarch by sending a party to the Battle of Noain and providing help to quash the Revolt of the Comuneros in 1521.