 Rob Roy MacGregor captured Balgonie Castle during a raid in 1716, although the castle was soon returned to the Melvilles.David Melville, 6th Earl of Leven made minor improvements in the 1720s, including the insertion of sash windows.Further buildings were also added within the courtyard.