In 1265, the use of the city as a seaport was granted to Navarre as part of a wedding pact. The large 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.