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 were 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.