During the Anglo-Scottish Wars the Borthwicks fought on the side of King James IV of Scotland at the Battle of Flodden in 1513. William Borthwick, 4th Lord Borthwick, whose father had died in the previous decade, was given command of Stirling Castle and charged with the safety of the infant James V of Scotland.