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
St. Andrew's Abbey (Bruges) was elevated to an abbey and became independent of Affligem, thus beginning a period of prosperity, which lasted until the 14th century. In 1240, after a long dispute between the abbot and the local parish priest, a wall was built in the church to divide it into two. In 1350 the abbey sold a piece of ground right next to the abbey itself on which the charterhouse of Sint-Anna-ter-Woestijne was built. The abbey was severely damaged during the second half of the 15th century by German lansquenets. In 1521, Emperor Charles V and his brother Ferdinand visited the monastery and