section_path: Geographical distribution/Africa/North Africa and Macaronesia
section_name: North Africa and Macaronesia
paragraph_text: North Africa and Macaronesia
  
  Spanish is also spoken in the integral territories of Spain in Africa, namely the cities of Ceuta and Melilla and the Canary Islands, located in the Atlantic Ocean some 100 km (62 mi) off the northwest of the African mainland. The Spanish spoken in the Canary Islands traces its origins back to the Castilian conquest in the 15th century, and, in addition to a resemblance to Western Andalusian speech patterns, it also features strong influence from the Spanish varieties spoken in the Americas, which in turn have also been influenced historically by Canarian Spanish. The Spanish spoken in North Africa by native bilingual speakers of Arabic or Berber who also speak Spanish as a second language features characteristics involving the variability of the vowel system.
  
  While far from its heyday during the Spanish protectorate in Morocco, the Spanish language has some presence in northern Morocco, stemming for example from the availability of certain Spanish-language media. According to a 2012 survey by Morocco's Royal Institute for Strategic Studies (IRES), penetration of Spanish in Morocco reaches 4.6% of the population. Many northern Moroccans have rudimentary knowledge of Spanish, with Spanish being particularly significant in areas adjacent to Ceuta and Melilla. Spanish also has a presence in the education system of the country (through either selected education centers implementing Spain's education system, primarily located in the North, or the availability of Spanish as foreign language subject in secondary education).
  
  In Western Sahara, formerly Spanish Sahara, a primarily Hassaniya Arabic -speaking territory, Spanish was officially spoken as the language of the colonial administration during the late 19th and 20th centuries. Today, Spanish is present in the partially-recognized Sahrawi Arab Democratic Republic as its secondary official language, and in the Sahrawi refugee camps in Tindouf (Algeria), where the Spanish language is still taught as a second language, largely by Cuban educators. The number of Spanish speakers is unknown.
  
  Spanish is also an official language of the African Union.