Holyrood Palace council of nobles met to discuss a ransom for the captive king, William the Lion. Robert the Bruce held a parliament at the abbey in 1326, and by 1329 it may already have been in use as a royal residence. In 1370, David II became the first of several Kings of Scots to be buried at Holyrood. Not only was James II born at Holyrood in 1430, it was at Holyrood that he was crowned, married and laid to rest. James III and Margaret of Denmark were married at Holyrood in 1469. The early royal residence was in the abbey
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.