Edward I died in Carlisle in 1307. His heir, Edward II, moved an army north to break the siege of Stirling Castle and again take control. Robert defeated that army at the Battle of Bannockburn in 1314, securing temporary independence. In 1320, a letter to the Pope from the nobles of Scotland (the Declaration of Arbroath) went part of the way towards convincing Pope John XXII to overturn the earlier excommunication and cancel the various acts of submission by Scottish kings to English ones so that Scotland's independence could be recognised by other European countries.