evidence: The town of Olivença was under Portuguese sovereignty continuously between 1297 (Treaty of Alcañices) and 1801, when it was occupied by Spain during the War of the Oranges and ceded that year under the Treaty of Badajoz. Spain has since administered the territory (now split into two municipalities, Olivenza and Táliga), whereas Portugal invokes the self-revocation of the Treaty of Badajoz, plus the Congress of Vienna of 1815, to claim the return of the territory. In spite of the territorial dispute between Portugal and Spain, the issue has not been a sensitive matter in the relations between these two countries.[2][3] [...] - 1850 – The village of Táliga is separated to form its own municipality. [...] - 29 September 1864 – The Treaty of Lisbon (1864) between Portugal and Spain is signed, demarcating the border from the estuary of the Minho river, on the far North, to the confluence of the Caya River with the Guadiana river, just north of Olivenza. The demarcation of the border is not pursued further because of the situation of Olivenza.