Treaty of Vienna
Later on, the Treaty of Vienna - signed by Spain in 1817 - stated clearly that the winning countries are to "endeavour with the mightiest conciliatory effort to return Olivença to Portuguese authority".