He gained further military experience serving during the Williamite War in Ireland (1689–91), fighting for the forces of William of Orange against the Jacobite Irish Army. He took part in the Siege of Carrickfergus, where he was wounded. He also participated in the Battle of the Boyne in 1690, a decisive victory for William's troops.