The last action of the war was on the part of the Catalan barons of Roussillon and Cerdagne, which had been assigned to France as surety for war subsidies. The French were only slowly expelled. On 1 February 1473, John entered Perpignan to the joy of its citizens. He placed Catalan garrisons in the castles of Bellegarde, Collioure, and Salses. The French, angered by the abridgement of the treaty of Bayonne, counter-attacked a few weeks later, but some Castilian troops under Prince Ferdinand successfully resisted. John began negotiations that led to a truce in July and a treaty at Perpignan on 17 September. John recognised the treaty of Bayonne in return for French recognition of his sovereignty in the disputed provinces. John agreed to pay 300,000 écus, and Roussillon and Cerdagne were proclaimed "neutral" until the payment was made. John returned to Barcelona triumphant, but failed to raise the necessary funds. In the summer of 1474 the French conquered Roussillon and March 1475 Perpignan fell to them. The French raided the Empordà as far as Girona in 1476, and John, his allies tied up by their own wars, could not even oppose them. In October 1478 he ceded the two provinces to France until he could redeem them with cash. Revolts against his authority flared in Aragon and Valencia, which had stayed out of the civil war, and he failed to put them down. He did succeed in quashing a revolt in Sardinia.

Question: What happened first, the entrance of John to Perpignan, or the placement of the garrisons?
Answer: the entrance of John to Perpignan

Question: How many castles did John place garrisons at?
Answer: 3

Question: What happened first, the treaty of Bayonne, or the French counter-attack?
Answer: treaty of Bayonne

Question: How many months passed between the truce and the treaty?
Answer: 2

Question: What happened first, the treaty of Bayonne, or John's return to Barcelona?
Answer: treaty of Bayonne

Question: Who did Franceconquer first, Roussillon or Perpignan?
Answer: Roussillon

Question: How many years passed between the conquer of Roussillon and the French raiding the Empordà?
Answer: 2

Question: How many years were there between the French raid on Empordà and the John ceding two provinces to France?
Answer: 2

Question: Which three cities experienced revolts in 1478?
Answer: Aragon and Valencia

Question: How was John able to obtain a truce at Perpignan?
Answer: negotiations

Question: How many days passed between John entering Perpignan and the treaty at Perpignan?
Answer: 228

Question: How many years passed between John entering Perpignan and him ceding two provinces to France?
Answer: 5

Question: How many years passed between the French conquering Roussillon and Perpignan falling to them?
Answer: 1

Question: Which two provinces did John cede to France?
Answer: Roussillon

Question: Who did Aragon and Valencia revolt against?
Answer: John

Question: How many castles did John place Catalan garrisons on?
Answer: 3

Question: How many years after John entered Perpignan did he cede it to France?
Answer: 5