Answer
The Pact of Terracina was an agreement reached in 1415 between Pope Gregory XII and his rival claimants to the papacy, Benedict XIII and John XXIII. It stipulated that all three would resign to enable a new conclave to elect a single, undisputed pope, thus ending the Western Schism that had divided the Catholic Church since 1378.