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
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