 He rose in rank, and was promoted to brigadier after 31 years in the service.He participated in the siege of Gibraltar in 1779, and in the war against revolutionary France beginning in 1792.He earned distinction in the later conflict when he covered the retreat of Spanish troops to Tolosa, on the Guipúzcoa frontier, in 1794.