The lands remained in the Ralston family until 1704 when they were sold by Gavin Ralston to John, Earl of Dundonald, who conferred them on his daughter, Lady Anne Cochrane, when she married James Hamilton, 5th Duke of Hamilton.