Holyrood Abbey abbey's position close to Edinburgh Castle meant that it was often visited by Scotland's kings, who were lodged in the guest house situated to the west of the abbey cloister. In the mid-15th century, with the emergence of Edinburgh as the main seat of the royal court and the chief city in the kingdom, the Kings of Scots increasingly used the accommodation at Holyrood for secular purposes. James II and his twin brother Alexander, Duke of Rothesay, were born there in October 1430. James was also crowned at Holyrood in 1437 and building works were carried out before his marriage
Charles II of Naples realms ruled by the kings of Hungaryaccepted the pope's decision. Charles made donations to them to secure their support, but Charles Martel could never assert his claim. The death of Pope Nicholas IV gave rise to a prolonged interregnum. Charles continued the negotiations with James with the mediation of Sancho IV of Castile. An agreement was completed in Figueras in late 1293. James agreed to give up Sicily in return for a compensation. To put an end to the interregnum in Rome, Charles persuaded the cardinals to elect Peter of Morronea hermit who had been known for his apocalyptic visionspope.