Ifni was a Spanish enclave in Morocco at the Atlantic Coast. It became Spanish on October,22 1859 and it was only restored to Morocco on June, 30 1969.