European enclaves in North Africa before 1830

Genoese Tabarka fort, built in the Middle Ages

The European enclaves in North Africa (technically 'semi-enclaves') were towns, fortifications and trading posts on the Mediterranean and Atlantic coasts of western North Africa (sometimes called also "Maghreb"), obtained by various European powers in the period before they had the military capacity to occupy the interior (i.e. before the French conquest of Algeria in 1830). The earliest medieval enclaves were established in the 11th century CE by the Italian Kingdom of Sicily and Maritime republics; Spain and Portugal were the main European powers involved; both France and, briefly, England also had a presence. Most of these enclaves had been evacuated by the late 18th century, and today only the Spanish possessions of Ceuta, Melilla, and the Plazas de soberanía remain.