by Ferdinand IV of Castile and Alfonso XI of Castile. However, maintaining these privileges was problematic at times, as when in 1463 the tax collector Jacob Gaón demanded payment of the tax called from the Tolosans. They replied that they were exempt from payment because of the provisions approved by the king. Gaón threatened them, and several of them killed him, beheaded him, and put his head on a pillory as punishment for having put Tolosa at the top of his list of collections. King Henry IV of Castile went to Tolosa to avenge his death, but the perpetrators fled the village. The king ordered the house where the crime was committed to be demolished. He did not execute the perpetrators, since before catching them he received a petition from the Junta of Gipuzkoa requesting pardon for the Tolosans, and presented their arguments, and Henry IV acknowledged that they were exempt from payment. The prevailing insecurity since the 14th century means that over two centuries, several towns and villages joined and separated from the council of Tolosa, including Abaltzisketa, Aduna, Albiztur, Alegia, Alkiza, Altzo, Amasa, Amezketa, Andoain, Anoeta, Asteasu, Baliarrain, Belauntza, Berastegi, Berrobi, Zizurkil, Elduain, Ezama, Gaztelu, Hernialde, Ibarra, Ikaztegieta, Irura, Laskoain, Leaburu, Lizartza, Orendain, Orexa and Igorre. Tolosa is committed to the defense of the towns, which remain under the jurisdiction of the mayor, and are usually ascribed the privileges and charters of Tolosa. During the fourteenth century there were various disagreements with these cities and a conflict with San Sebastián over the cases of Andoain, Aduna and Alkiza, which was settled in 1479 with the transfer of these three towns to the jurisdiction of San Sebastian. In 1469 it underwent another important fire, and another major one in 1503 that affected even the parish church, despite being isolated. In both cases it was granted new privileges to aid in its reconstruction, and the Catholic Monarchs issued an order for the mayor of the province to reside in Tolosa when not visiting other towns. After the uprising of the Count of Salvatierra in 1520, during the Revolt of the Comuneros, Tolosa was on the communal side, and the royalist army defeated the resistance of Tolosa and other Basque communal towns after the defeat of the army of the Count of Salvatierra, Pedro López de Ayala, in the battle of Miñano Mayor on 19 April 1521. On 9 August 1794,