Scotland in the Middle Ages excommunication of Bruce and his followers by Pope Clement V, his support slowly strengthened; and by 1314 with the help of leading nobles such as Sir James Douglas and Thomas Randolph only the castles at Bothwell and Stirling remained under English control. Edward I had died in 1307. His heir Edward II moved an army north to break the siege of Stirling Castle and reassert control. Robert defeated that army at the Battle of Bannockburn in 1314, securing "de facto" independence. In 1320 the Declaration of Arbroath, a remonstrance to the pope from the nobles of Scotland, helped convince Pope
Robert the Bruce between English and Scottish occupation. Eventually it was defeated when Edward Bruce was killed at the Battle of Faughart. The Irish Annals of the period described the defeat of the Bruces by the English as one of the greatest things ever done for the Irish nation due to the fact it brought an end to the famine and pillaging wrought upon the Irish by both the Scots and the English. The reign of Robert Bruce also included some significant diplomatic achievements. The Declaration of Arbroath of 1320 strengthened his position, particularly in relation to the Papacy, and Pope John XXII