In June 1697, now with the rank of general of battle, he moved to Barcelona in an attempt to stop the advance of the French troops of the Duke of Vendôme.
En xuño de 1697, agora coa patente de xeneral de batalla, trasladouse a Barcelona, ​​nun intento de deter o avance das tropas francesas do duque de Vendôme.