Thereupon on 4 July 1415, Malatesta, acting in the name of Gregory XII, pronounced the resignation of the Pope, which the cardinals accepted. According to prior agreement, they agreed to retain all the cardinals that had been created by Gregory XII, thus satisfying the Corraro clan, and appointed Gregory XII Bishop of Frascati, Dean of the Sacred College of Cardinals and perpetual legate at Ancona. The Council then set aside Antipope John XXIII (1410–15), the successor of Alexander V. After the former follower of Benedict XIII appeared, the council declared him deposed; and the Western Schism was ended.