 The Boyds held the castle until 1642, when James, 9th Lord Boyd sold it to the advocate James Roberton, grandson of John Roberton, 9th Laird of Earnock, later Lord Bedlay.The Robertons extended the castle, and held the property until 1786.Since then the castle has been owned by a number of people, including the Campbells of Petershill, who built a family mausoleum in the grounds.