He commanded Portuguese and allied forces in the Battle of Zaragoza and the Battle of Villaviciosa.