The castle was probably built in the mid-13th century under Gilbert de Moravia. It has been posited that siting of Kildrummy Castle was influenced by the location of the Grampian Mounth trackway crossings, particularly the Elsick Mounth and Cryne Corse Mounth. 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), 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. In the reign of David II, Walter Maule of Panmure was warden of Kildrummy Castle.