### Instruction: Who was the prime minister of Spain when Spain joined NATO?
### Response: Spain joined NATO by referendum in 1986. The prime minister of Spain at the time was Felipe Gonzalez.