The treaty was temporarily void during the Iberian Union from 1580 to 1640, when the monarchies of Spain and Portugal were in a dynastic union. However, with Portugal's restoration of independence, the alliance returned and came to a new height during the Napoleonic wars when the British sent their best general, the Duke of Wellington, to sap Napoleon's armies in the Peninsular War.