 King Robert the Bruce gave the castle to the Boyds of Kilmarnock for services rendered at the Battle of Bannockburn.By 1451 the lands had passed into the hands of William, Earl of Douglas and later to the Boswells of Auchinleck.In the 17th century Chalmers of Gadgirth and Reid of Barskimming held parts of the Barony of Trabboch.