The war ended with the 1697 Treaty of Ryswick and the regiment transferred onto the Irish establishment, based at Carrickfergus. When the War of the Spanish Succession began in 1702, it returned to Flanders and served throughout Marlborough's campaigns, including the capture of Liège in 1702, as well as the battles of Schellenberg, Blenheim, Ramillies, the Oudenarde and Malplaquet. After the Treaty of Utrecht in 1714, it moved to Scotland and held Fort William during the Jacobite Rising of 1715.