As negotiations over Spain’s entry to the European Union grew tense in 1983, King Juan Carlos twice told British officials it was not to Spain’s advantage to recover Gibraltar, according to newly declassified documents released to the UK National Archives.