It was a precursor to the Peninsular Wars, resulting in the Treaty of Badajoz, the loss of Portuguese territory, in particular Olivenza, as well as ultimately setting the stage for the complete invasion of the Iberian Peninsula by French forces.