Robert the Bruce later account, "Tales of a Grandfather" by Sir Walter Scott, and may have originally been told about his companion-in-arms Sir James Douglas (the "Black Douglas"), who had spent time hiding out in caves within his manor of Lintalee, which was then occupied by the English. The entire account may in fact be a version of a literary trope used in royal biographical writing. A similar story is told, for example, in Jewish sources about King David, and in Persian folklore about the Mongolian warlord Tamerlane and an ant. It is said that before the Battle of Bannockburn, Bruce was attacked
Robert the Bruce planned a major military campaign with the support of Lancaster and the barons, mustering a large army of between 15,000 and 20,000 men. In the spring of 1314, Edward Bruce laid siege to Stirling Castle, a key fortification in Scotland whose governor, Philip de Mowbray, agreed to capitulate if not relieved before 24 June 1314. In March, James Douglas captured Roxburgh, and Randolph captured Edinburgh Castle, while in May, Bruce again raided England and subdued the Isle of Man. News of the agreement regarding Stirling Castle reached the English king in late May, and he decided to speed his march