The Algeria–Morocco border is 1,427 km (887 m) in length and runs from Mediterranean Sea in the north, to the tripoint with Western Sahara in the south.
The boundary starts in the north on the Mediterranean Sea just west of Marsa Ben M'Hidi; it then proceeds overland toward the south via a series of irregular lines, veering slightly to the southeast. Near the Moroccan town of Figuig it veers sharply to the west, proceeding then in a broadly south-westerly direction via a series of straight and irregular lines. Upon reaching the Draa River the border then follows this for some distance, before veering sharply to the south, whereupon a straight north-south line proceeds for 116 km (72 m) down to the Western Sahara tripoint.
France occupied much of the northern coastal areas of Algeria in the period 1830-47, which had hitherto been subject to the nominal control of the Ottoman Empire. Morocco initially managed to maintain its independence throughout the 'Scramble for Africa' in the late 19th century, whereby European colonial control was established in the rest of Africa. The border between it and the Ottoman domains to the east had been vague, and Morocco maintained a traditional, though often weakly enforced, claim to large areas of north-west Africa. France sought to rectify this, and as a result a border which delimited from the Mediterranean south to Teniet el-Sassi via the Treaty of Lalla Marnia of 18 March 1845. Protocols confirming this treaty were signed on 20 July 1901 and 20 April 1902, which also extended the frontier south to Figuig, though not in any great detail. The thinly scarcely inhabited areas south of Figuig the border remained undemarcated, subject to vague and ill-defined administrative practices on the ground of uncertain legal standing. In 1912, via the Treaty of Fes, France and Spain partitioned Morocco between them, with the northern littoral becoming Spanish protectorate in Morocco (excluding Tangier, which later became an international zone) and the rest French Protectorate in Morocco (minus Ifni, which formed a Spanish exclave).
Morocco gained full independence in 1956, followed by Algeria in 1962. The uncertainty over much of the border alignment, and Morocco’s claims for a so-called 'Greater Morocco' encompassing much of north-west Africa, led to the Sand War of 1962-3. Various agreements were signed in 1969-70 aiming to provide a peaceful resolution of the dispute, which resulted in the treaty of 15 June 1972 which demarcated for the first time the entire boundary. However relations worsened when Spain announced its intention to pull out of Spanish Sahara (modern Western Sahara) in 1975, with Morocco then annexing the northern two-thirds, and later the whole, of the territory. Algeria opposed the annexation and provided shelter for the Polisario Front Saharawi nationalist militia and Saharawi refugees on its territory. As Algeria slid into civil war in the 1990s, relations once again soured, with Algeria closing the border in 1994. Relations thawed slightly with the advent of peace in Algeria in the early 2000s, though at present the border remains closed.
Settlements near the border
- Marsa Ben M'Hidi
- Forthassa Gharbia
- Beni Ounif
- Er Remlia
- Sidi Aissa
- El Hammam
- Aïn Chaïr
- Rgabi Ait Hassou
- M'Hamid El Ghizlane
- CIA World Factbook - Algeria, retrieved 26 January 2020
- Brownlie, Ian (1979). African Boundaries: A Legal and Diplomatic Encyclopedia. Institute for International Affairs, Hurst and Co. pp. 55–83.
- Security Problems with Neighboring States – Countrystudies.us
- Frank E. Trout, Morocco's Saharan Frontiers, Droz (1969), p.24 (ISBN 9782600044950) "The Gourara-Touat-Tidikelt complex had been under Moroccan domination for many centuries prior to the arrival of the French in Algeria."
- Torres-García, Ana (2013). "US diplomacy and the North African 'War of the Sands' (1963)". The Journal of North African Studies. 18 (2): 327. doi:10.1080/13629387.2013.767041. S2CID 144944978.
- Zunes, Stephen (Summer 1995). "Algeria, The Maghreb Union, & the Western Sahara Stalemate". Arab Studies Quarterly. 17 (3): 29. JSTOR 41858127.
- Entelis, John P. with Lisa Arone. "The Maghrib". Algeria: a country study Archived January 15, 2013, at the Wayback Machine. Library of Congress Federal Research Division (December 1993)
- Xinhua (2012-03-27). "Reopening border between Morocco, Algeria requires deeper examination: minister". Retrieved August 20, 2012.