James IV of Scotland but from all of Great Britain, to be killed in battle. James was the son of King James III and Margaret of Denmark, born in Holyrood Abbey. As heir apparent to the Scottish crown, he became Duke of Rothesay. In 1474, his father arranged his betrothal to the English princess Cecily of York, daughter of Edward IV of England. His father James III was not a popular king, facing two major rebellions during his reign, and alienating many members of his close family, especially his younger brother Alexander Stewart, Duke of Albany. James III's pro-English policy was also unpopular, and
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.