 In return, Spain acknowledged that Portuguese territories in Brazil extended far west of the line set in the Treaty of Tordesillas.In the Treaty of El Pardo, signed 11 March 1778, Spain won Spanish Guinea (Equatorial Guinea), which was administered from Buenos Aires in 1778–1810.With these treaties, Portugal had left the war, and in 1781 Portugal even joined the First League of Armed Neutrality to resist British seizures of cargo from neutral ships.