The siege of Almeida took place in August 1762 when a Spanish force besieged and captured the city of Almeida from its Portuguese defenders during the Seven Years' War. The city was taken on 25 August as part of the invasion of Portugal by a Spanish army commanded by the Count of Aranda. 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 Havana and Manila to Spain by the British.