He also strongly criticized the marriage of king Jagiełło to 45-year-old Elisabeth of Pilica and criticized his rival, the Archbishop of Lwów, Jan of Rzeszów, who remained in Poland. Some speculate that his stance was motivated by a desire to become pope, and that he hoped that after his election he would be able to reverse all the damage he had caused; others, that he put the elimination of the Western Schism over the good of his country. In 1418 Pope Martin V was elected to that office, and quickly annulled Antipope John XXIII's papal bulls supporting Poland against the Teutonic Knights.