Holyrood Abbey of Holyrood during the four centuries of its existence as a religious house were Kings David I and II; Robert, Bishop of St. Andrews; and Fergus, Lord of Galloway. The Parliament of Scotland met at the abbey in 1256, 1285, 1327, 1366, 1384, 1389 and 1410. In 1326 Robert the Bruce held parliament here and there is evidence that Holyrood was being used as a royal residence by 1329. The Treaty of Edinburgh–Northampton (1328), which brought an end to the First War of Scottish Independence, was signed by Robert I in the "King's Chamber" at Holyrood in March 1328. The
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.