War of the Oranges
He was adjunct to Field Marshall João Carlos de Bragança Sousa e Ligne, 2nd Duke of Lafões, during the 1801 campaigns of the Peninsular War, known as the War of the Oranges. Military secretary of the duke, between 1797 and 1801, he published an important paper on conducting operations.