|Grid reference||grid reference|
|In use||Until 16th or 17th century|
In 1197, the castle was built by King William the Lion of Scotland, who later in 1205 created a burgh at Ayr. The castle was captured by the Norwegian King Håkon Håkonsson and his supporters in 1263.[better source needed] Robert the Bruce burned the castle in August 1298 which had been captured by the English and under the command of Henry de Percy, 1st Baron Percy. The castle in 1542 was garrisoned by French troops and appears to have been demolished before the Cromwellian occupation between 1650–1651.
- Lawrie, John (1783). The History of the Wars in Scotland: From the Battle of the Grampian Hills in the year 85 to the Battle of Culloden in the Year 1746. Edinburgh, W Darling.