Stirling Castle castle, if it were not relieved by 24 June 1314. Bruce agreed, and withdrew. The following summer, the English duly headed north, led by Edward II, to save the castle. On 23–24 June, King Robert's forces met the English at the Battle of Bannockburn, within sight of the castle walls. The resulting English defeat was decisive. King Edward attempted to take refuge in the castle, but Mowbray was determined to keep to his word, and the English were forced to flee. Mowbray handed over the castle, changing sides himself in the process. King Robert ordered the castle to be slighted;
Robert the Bruce stated Bruce did not participate and in the following month decided to lay waste Annandale and burn Ayr Castle, to prevent it being garrisoned by the English. William Wallace resigned as Guardian of Scotland after his defeat at the Battle of Falkirk. He was succeeded by Robert Bruce and John Comyn as joint Guardians, but they could not see past their personal differences. As a nephew and supporter of King John, and as someone with a serious claim to the Scottish throne, Comyn was Bruce's enemy. In 1299, William Lamberton, Bishop of St. Andrews, was appointed as a third, neutral