An important garrison after the 1745 Jacobite rising, Braemar Castle had been attacked and burned by John Farquharson, the "Black Colonel" of Inverey during the Jacobite rising of 1689, to prevent it being used as a garrison by Government troops. In 1716 the castle was forfeited to the Crown following the Earl of Mar's leadership of the 1715 Jacobite rising. The castle and lands were purchased by John Farquharson, 9th Laird of Invercauld but the building was left in ruins until 1748 when it was leased to the government at a fee of £14 per year, now to serve as a garrison for Hanoverian troops. Rebuilding started under the command of John Adam, Master Mason to the Board of Ordnance.