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 gained first-hand knowledge of the city's defences. The next time Carlisle was besieged, in 1315, Robert the Bruce would be leading the attack. Edward I responded to King John's alliance with France and the attack on Carlisle by invading Scotland at the end of March 1296 and taking the town of Berwick in a particularly bloody attack upon the flimsy palisades. At the Battle of Dunbar, Scottish resistance was effectively crushed. Edward deposed King John, placed him in the Tower of London, and installed Englishmen to govern the country. The campaign had been very successful, but the English triumph would