The castle was probably built in the mid-13th century
Kildrummy Castle underwent siege numerous times in its history, first in defence of the family of Robert the Bruce in August–September 1306 (leading to the executions of Nigel Bruce and many other Scots),[4] and again in 1335 by David of Strathbogie. On this occasion Christina Bruce held off the attackers until her husband Sir Andrew Murray came to her rescue.[5]
The castle passed from the Clan Elphinstone to the Clan Erskine before being abandoned in 1716 following the failure of the Jacobite Rising of 1715.
https://en.wikipedia.org/wiki/Kildrummy_Castle
Neil de Brus (c. 1279 – September 1306), also Niall or Nigel, was a younger brother of King Robert I of Scotland. He supported his older brother in the struggle for the crown of Scotland and fought in the Wars of Scottish Independence.
In 1306, he was captured by English forces at Kildrummy Castle, where he and his garrison held off Edward's forces who had been seeking Robert the Bruce's wife Elizabeth, daughter Marjorie, sisters Mary and Christina, and Isabella MacDuff, Countess of Buchan.[1] Their actions enabled the women to escape, although the women were soon captured and betrayed to the English by William, 3rd Earl of Ross in the chapel of St Duthac at Tain in Ross.[2]
After his capture he was executed for high treason by being hanged, drawn, and quartered in September 1306 at Berwick-upon-Tweed.[1]