establish himself as the feudal overlord of Scotland. During the negotiations, Edward stayed briefly at Edinburgh Castle and may have received homage there from the Scottish nobles. In March 1296, Edward I launched an invasion of Scotland, unleashing the First War of Scottish Independence. Edinburgh Castle soon came under English control, surrendering after a three days long bombardment. Following the siege, Edward had many of the Scottish legal records and royal treasures moved from the castle to England. A large garrison numbering 325 men was installed in 1300. Edward also brought to Scotland his master builders of the Welsh castles, including Thomas de Houghton and Master Walter of Hereford, both of whom travelled from Wales to Edinburgh. After the death of Edward I in 1307, however, England's control over Scotland weakened. On 14 March 1314, a surprise night attack by Thomas Randolph, 1st Earl of Moray recaptured the castle. John Barbour's narrative poem The Brus relates how a party of thirty hand-picked men was guided by one William Francis, a member of the garrison who knew of a route along the north face of the Castle Rock and a place where the wall might be scaled. Making the difficult ascent, Randolph's men scaled the wall, surprised the garrison and took control. Robert the Bruce immediately ordered the slighting of the castle to prevent its re-occupation by the English. Four months later, his army secured victory at the Battle of Bannockburn. After Bruce's death in 1329, Edward III of England determined to renew the attempted subjugation of Scotland and supported the claim of Edward Balliol, son of the former King John Balliol, over that of Bruce's young son David II. Edward invaded in 1333, marking the start of the Second War of Scottish Independence, and the English forces reoccupied and refortified Edinburgh Castle in 1335, holding it until 1341. This time, the Scottish assault was led by William Douglas, Lord of Liddesdale. Douglas's party disguised themselves as merchants from Leith bringing supplies to the garrison. Driving a cart into the entrance, they halted it there to prevent the gates closing. A larger force hidden nearby rushed to join them and the castle was retaken. The 100 English men of the garrison were all killed. David's Tower and the 15th century The 1357 Treaty of Berwick brought the Wars of Independence to a close. David II resumed his rule and set about