Pedro Martínez de Luna y Pérez de Gotor (25 November 1328 – 23 May 1423), known as in Spanish and Pope Luna in English, was an Aragonese nobleman who, as Benedict XIII, is considered an antipope (see Western Schism) by the Catholic Church. Early life Pedro Martínez de Luna was born at Illueca, Kingdom of Aragon (part of modern Spain), in 1328. He belonged to the de Luna family, who were part of the Aragonese nobility. He studied law at the University of Montpellier, where he obtained his doctorate and later taught canon law. His knowledge of canon law, noble lineage, and austere way of life won him the approval of Pope Gregory XI, who appointed de Luna to the position of Cardinal Deacon of Santa Maria in Cosmedin on 20 December 1375. Avignon election In 1377, Pedro de Luna and the other cardinals returned to Rome with Pope Gregory, who had been persuaded to leave his papal base at Avignon. After Gregory's death on 27 March 1378, the people of Rome feared that the cardinals would elect a French pope and return the papacy to Avignon. Consequently, they rioted and laid siege to the cardinals, insisting on an Italian pope. The conclave duly elected Bartolomeo Prignano, Archbishop of Bari, as Urban VI on 9 April, but the new pope proved to be intractably hostile to the cardinals. Some of them reconvened at Fondi in September 1378, declared the earlier election invalid and elected Robert of Geneva as their new pope, initiating the Western Schism. Robert assumed the name Clement VII and moved back to Avignon. Clement VII sent de Luna as legate to Spain for the Kingdoms of Castile, Aragon, Navarre, and Portugal, in order to win them over to the obedience of the Avignon pope. Owing to his powerful relations, his influence in the Province of Aragon was very great. In 1393, Clement VII appointed him legate to France, Brabant, Flanders, Scotland, England, and Ireland. As such he stayed principally in Paris, but he did not confine his activities to those countries that belonged to the Avignon obedience. Following Clement's death on 16 September 1394, the cardinals met at Avignon. The conclave consisted of 11 French cardinals, eight Italians, four Spaniards, and one from Savoy, all proclaiming the ardent wish to reunite the church. The cardinals then elected Luna as the new pope, on the condition that he