In 1702, during the War of the Spanish Succession, he fought at the Battle of Cádiz and the Battle of Vigo Bay; he was also present at the Siege of Barcelona in 1705 and at the Battle of Almansa in 1707.