During the Jacobite risings of the 18th century the Clan Campbell supported the British-Hanoverian Government. On 23 October 1715, chief John Campbell, 2nd Duke of Argyll learned that a detachment of rebels was passing by Castle Campbell, towards Dunfermline. He sent out a body of cavalry which attacked the rebel party and defeated it in what is now known as the Skirmish of Dunfermline and took a number of prisoners, taking only light casualties. A month later the British Government forces, including men from Clan Campbell, fought and defeated the Jacobites at the Battle of Sheriffmuir in 1715. However, there were in fact a small number of Campbells who took the side of the Jacobites led by the son of Campbell of Glenlyon whose father had commanded the Government troops at the Massacre of Glencoe against the MacDonalds 22 years earlier. These two families then settled their differences and swore to be brothers in arms, fighting side by side in the Sheriffmuir. However, the British Government forces led by chief John Campbell, 2nd Duke of Argyll defeated the Jacobites.