Huntly brought in Sir Duncan Grant of Freuchie to restore order to the area around Urquhart Castle. His son John Grant of Freuchie (d.1538) was given a five-year lease of the Glen Urquhart estate in 1502. In 1509, Urquhart Castle, along with the estates of Glen Urquhart and Glenmoriston, was granted by James IV to John Grant in perpetuity, on condition that he repair and rebuild the castle. The Grants maintained their ownership of the castle until 1512, although the raids from the west continued. In 1513, following the disaster of Flodden, Sir Donald MacDonald of Lochalsh attempted to gain from the disarray in Scotland by claiming the Lordship of the Isles and occupying Urquhart Castle. Grant regained the castle before 1517, but not before the MacDonalds had driven off 300 cattle and 1,000 sheep, as well as looting the castle of provisions. Grant unsuccessfully attempted to claim damages from MacDonald. James Grant of Freuchie (d.1553) succeeded his father, and in 1544 became involved with Huntly and Clan Fraser in a feud with the Macdonalds of Clanranald, which culminated in the Battle of the Shirts. In retaliation, the MacDonalds and their allies the Camerons attacked and captured Urquhart in 1545. Known as the "Great Raid", this time the MacDonalds succeeded in taking 2,000 cattle, as well as hundreds of other animals, and stripped the castle of its furniture, cannon, and even the gates. Grant regained the castle, and was also awarded Cameron lands as recompense.