Spanish West Africa () is a former possession in the western Sahara Desert that Spain ruled after giving much of its former northwestern African possessions to Morocco. As a political entity, it included Ifni, on the western coast of Morocco, the Tarfaya Strip, at its southern border, and a stretch of land including and connecting the cities of Ceuta and Melilla. The area between the two cities is under Moroccan sovereignty today, but the ports themselves are autonomous communities of Spain.