The force that captured Almeida was part of a major Spanish offensive to overrun Portugal. A northern pincer invaded Portugal from Galicia crossing the Douro and threatening Porto while the southern force crossed the border from Ciudad Rodrigo and preceded towards the major Portuguese fortification of Almeida. It was captured after a nine day siege, but a further Spanish advance was stalled by the arrival of 8,000 British troops - and their disruption of Spanish supplies at the Battle of Valencia de Alcántara.
Almeida was garrisoned by Aranda, but it remained the only major fortress in Spanish hands by the close of the war. It was returned to the Portuguese following the Treaty of Paris in exchange for the return of Cuba and the Philippines to Spain by the British.