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 from English rule (having received a reply to offers of assistance from Donal O'Neil, king of Tyrone), and to open a second front in the continuing wars with England. Bruce was even crowned as High King of Ireland in 1316. Robert later went there with another army to assist his brother. In conjunction with the invasion, Bruce popularised an ideological vision of a "Pan-Gaelic Greater Scotia" with his lineage ruling over both Ireland and Scotland. This propaganda campaign was aided by two factors. The first was his marriage alliance from 1302 with the de Burgh family of the Earldom of