and its surroundings, while the Moroccan Liberation Army took control of the abandoned territory. The war was never formally declared nor finished, but on April 1, 1958 Spain and Morocco signed the Agreements of Angra de Cintra, by which Cape Juby was turned over to Morocco in June 1958. The lost territories of Ifni region were never regained by Spain, but were integrated into Morocco. Once the defensive line at Sidi Ifni was settled the city remained under Spanish rule as a province of Spain, comparable to the Spanish enclave cities, Cueta and Melilla, on the northern coast of Morocco.