Relations were strained in the 1980s, and there were various Libyan interference attempts in Spanish domestic politics, by providing logistic support to a number of political groups. Gadaffi had expected the new PSOE government to remove Spain from NATO membership after it came to power in 1982 and, shortly afterwards the 1986 referendum on the matter, he threatened Spain and Italy with military retaliation in case Libya was attacked.