This was agreed upon in the Treaty of Aranjuez.
Toto bolo dohodnuté Aranjuezskou zmluvou.