Treaty of Madrid
The divided possessions sanctioned by the treaty continued, even when Spain and Portugal were united under a single king between 1580 and 1640, until the treaty was superseded by the 1750 Treaty of Madrid.