Spain, aided by the French, launched an invasion of Portugal and succeeded in capturing Almeida.