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 to his eldest son, Robert, the future king, so as to protect the Bruce's kingship claim while their middle lord (Robert the Bruce's father) now held only English lands. While the Bruces' bid for the throne had ended in failure, the Balliols' triumph propelled the eighteen-year-old Robert the Bruce onto the political stage in his own right. Even after John's accession, Edward still continued to assert his authority over Scotland and relations between the two kings soon began to deteriorate. The Bruces sided with King Edward against King John and his Comyn allies. Robert the Bruce and his father both