In 1689, during the first Jacobite rising, the castle was briefly the headquarters for Viscount Dundee and his Jacobite army, at the end of April, just after the start of the revolt. However, by the early eighteenth century the castle was already in decay and providing material for predatory house builders in the village. In 1746, during a later Jacobite rising, it was occupied by British government troops. Thereafter, it became a common quarry until a groundswell of antiquarian sentiment in the 19th century came to the rescue of the noble pile.