With the Treaty of Tarascon, the war with Aragon ended, but it had little effect with the death of Alfonso within months. Alfonso's brother, James I of Sicily, inherited Aragon and united the two realms. In 1295, James signed the Treaty of Anagni whereby he gave up Sicily to the papacy, with Pope Boniface VIII granting it to Charles. However, Peter III's third son, Frederick, the regent of Sicily, refused to acquiesce in the treaty, as did the Sicilian populace and they proclaimed him king. With this, war was renewed between Aragonese Sicily and Angevin Naples, between Frederick and Charles.