The Treaty of Anagni was an accord between the Pope Boniface VIII, James II of Aragon, Philip IV of France, Charles II of Naples, and James II of Majorca. It was signed on 20 June 1295 at Anagni, in central Italy. The chief purpose was to confirm the Treaty of Tarascon of 1291, which ended the Aragonese Crusade. It also dealt with finding a diplomatic solution to the conquest of Sicily by Peter III of Aragón in 1285.
Neither Frederick II of Sicily, James of Aragon's brother, nor the Sicilian people accepted the treaty and instead pursued a war against the Angevin forces of Charles of Naples. Charles was, as per the respective clause of the treaty, assisted by the fleet of James of Aragón. This war did not end until the Peace of Caltabellotta in 1302.
Two secret clauses were later added: