The castle came under attack by troops led by the Duke of Cumberland in 1746 in the course of the Jacobite rebellion. Yet more restoration work was carried out during the later part of the century.