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 was again obtained from the nobles and the burghs, and a parliament was held to elect those who would meet later in the year with the English parliament to establish rules for the governance of Scotland. The Earl of Richmond, Edward's nephew, was to head up the subordinate government of Scotland. While all this took place, William Wallace was finally captured near Glasgow, and he was hanged, drawn, and quartered in London on 23 August 1305. In September 1305, Edward ordered Robert Bruce to put his castle at Kildrummy, "in the keeping of such a man as he himself will