Answer
Gregory XII resigned to bring an end to the Great Western Schism, a period of division within the Catholic Church. He did so in 1415 at the Council of Constance, where he agreed to step down on the condition that the other claimants to the papal throne would also resign.