quantity of Gascons inhabiting the town favoured the development of trade with other European ports and Gascony. The city steered clear of the destructive War of the Bands in Gipuzkoa, the only town in doing so in that territory. In fact, the town only joined Gipuzkoa in 1459 after the war came to an end. Up to the 16th century, Donostia remained mostly out of wars, but by the beginning of the 15th century, a line of walls of simple construction is attested encircling the town. The last chapter of the town in the Middle Ages was brought about by a fire that devastated Donostia in 1489. After burning to the ground, the town began a new renaissance by building up mainly with stone instead of bare timber. Modern Age 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. After these events, Gascons, who had played a leading role in the political and economic life of the town since its foundation, began to be excluded from influential public positions by means of a string of regional sentences upheld by royal decision (regional diets of Zestoa 1527, Hondarribia 1557, Bergara 1558, Tolosa 1604 and Deba 1662). Meanwhile, the climate of war and disease left the town in a poor condition that drove many fishermen and traders to take to the sea as corsairs as a way of getting a living, most of the times under the auspices of the king Philip II of Spain, who benefited from the disruption caused to and wealth obtained from the French and Dutch trade ships. In 1660, the city was used as the royal headquarters during the marriage of the Infanta to Louis XIV at Saint-Jean-de-Luz nearby. After a relatively peaceful 17th century, the town was besieged and