Algeria and Morocco: A rivalry shaping North Africa’s future
The relationship between Algeria and Morocco stands as one of the most enduring conflicts in modern diplomacy, with consequences that ripple across the entire Maghreb region. Since gaining independence from colonial powers in the mid-20th century, the two nations have navigated a complex path between cautious cooperation and outright hostility. Their history includes a border war, diplomatic ruptures, closed borders, and a Cold War-style rivalry for regional dominance that has persisted across generations of leadership.
The central question explored here is whether opposing Morocco has become Algeria’s long-term national strategy. While this may seem an oversimplification, the reality reveals a complex dynamic where opposition to Morocco serves as a persistent, institutionalized principle in Algeria’s regional policy—though not its sole focus. This analysis examines how this rivalry has shaped Algeria’s foreign policy, military posture, and domestic narratives over decades.
Historical roots of a deep-seated rivalry
The seeds of this antagonism were sown long before Algeria achieved independence. French colonial cartography had redrawn the Saharan and pre-Saharan borders, annexing territories such as Tindouf and Béchar that Morocco historically claimed. When Morocco gained independence in 1956, it initially supported Algeria’s liberation struggle, only to later face Algerian rejection of territorial restitution claims.
The 1963 Sand War marked a turning point, leaving a residue of mutual distrust that never fully dissipated. For Algeria’s revolutionary elite, the conflict confirmed perceptions of Morocco as an expansionist neighbor aligned with conservative Western interests. For Morocco’s monarchy, it reinforced views of Algeria as an ideologically assertive state willing to use force against a neighbor that had once hosted its liberation movement. These perceptions have endured, resurfacing during every subsequent crisis.
Academic perspectives on the rivalry
Scholarly work on Algerian-Moroccan relations consistently identifies overlapping security provision roles as a structural source of friction. Historians trace the rivalry to colonial and postcolonial legacies, noting how Algeria’s identity was forged through 130 years of French occupation and a brutal independence war, shaping a foreign policy deeply skeptical of external engagement—including Moroccan involvement.
Research on the 2019 Hirak protests highlights that while domestic governance issues drove the movement, state narratives later incorporated external threat rhetoric, particularly regarding Morocco. This pattern reflects a broader trend where Algeria’s political elite periodically invokes external threats to consolidate internal cohesion and deflect attention from governance failures.
The Amazigh dimension: A shared heritage turned political tool
Both nations share significant Amazigh (Berber) populations, with Algeria’s concentrated in Kabylie, the Aurès, and M’zab, and Morocco’s in the Rif, Middle Atlas, and Souss regions. While both countries have constitutionally recognized Tamazight as an official language—Morocco in 2011 and Algeria in 2016—the political significance attached to Amazigh identity diverges sharply.
In Algeria, Amazigh movements have occasionally made autonomy claims that the central government treats as security threats, with authorities occasionally accusing Morocco of secretly encouraging Kabyle separatism. In contrast, Morocco’s monarchy has integrated Amazigh cultural recognition into a national narrative centered on the monarchy itself, avoiding separatist framing. This contrast illustrates how a shared civilizational heritage has been refracted through bilateral rivalry rather than serving as a foundation for cross-border cultural cooperation.
The Western Sahara dispute: The conflict’s institutional backbone
If the Sand War forged the psychological architecture of rivalry, the Western Sahara dispute provided its enduring institutional content. Spain’s withdrawal from its Saharan colony in 1975—precipitated by Morocco’s Green March—triggered a conflict that has structured bilateral relations for half a century. Morocco has administered most of the territory since then, presenting an autonomy plan under Moroccan sovereignty as the only realistic settlement basis. Algeria, while formally rejecting territorial ambitions, hosts the Polisario Front’s government-in-exile and refugee camps, providing diplomatic, financial, and at times military support while advocating Sahrawi self-determination at African Union and UN forums.
The opposing narratives are mutually exclusive. Algeria presents its position as upholding UN Charter principles of self-determination, while Morocco frames Algeria as a de facto party to the dispute rather than a neutral sponsor. The conflict has become self-sustaining: sovereignty over Western Sahara is presented by Rabat as a sacred national cause, while Algiers frames it as a decolonization principle. This mutual entrapment has transformed a regional territorial dispute into a fixed coordinate around which nearly all other bilateral dimensions now revolve.
The diplomatic landscape shifted after 2020 when the United States recognized Moroccan sovereignty over Western Sahara as part of the Morocco-Israel normalization agreement. This trend accelerated as European and African governments—particularly France—moved toward explicit or implicit support for Morocco’s autonomy plan. Algeria interpreted this as encirclement rather than a reason for recalibration, hardening its posture further.
Diplomacy through the Morocco prism
Algerian foreign policy since the 1970s has repeatedly pursued initiatives that, while appearing independent, also serve to contain Moroccan influence. Several areas exemplify this pattern:
The African Union
Algeria played a key role in admitting the Sahrawi Arab Democratic Republic to the Organization of African Unity in 1984, prompting Morocco’s 33-year withdrawal from the pan-African body. When Morocco reintegrated in 2017, Algeria intensified its continental engagement, courting Sahelian and sub-Saharan capitals in what amounted to renewed competition for African recognition of rival Saharan positions.
Normalization with Israel
Morocco’s 2020 decision to normalize relations with Israel—secured through U.S. recognition of its Saharan sovereignty claims—introduced a new axis of confrontation. Algeria, whose foreign policy identity has long integrated solidarity with the Palestinian cause as an ideological principle, interpreted this as a strategic repositioning that brought Israeli security and intelligence presence to its western flank. Algerian authorities subsequently promoted the notion of an “anti-Algerian axis” linking Rabat, Washington, and Tel Aviv—a framing that, while likely overestimating Algeria’s centrality in Israeli strategic calculations, concretely shaped threat perceptions and defense planning.
2021 Rupture and escalation
In August 2021, Algeria formally severed diplomatic relations with Morocco, citing alleged hostile acts. This was followed by the closure of Algerian airspace to Moroccan civilian and military aircraft, the permanent suspension of the Maghreb-Europe gas pipeline that had transported Algerian gas through Moroccan territory to Spain for 25 years, and the continued closure of the land border since 1994. These measures, still in effect, represent the most severe institutionalization of bilateral hostility since the Sand War and demonstrate how a bilateral dispute has come to condition Algeria’s infrastructure, energy, and airspace policies.
2026 Realignment
Morocco’s foundational participation in the U.S.-sponsored ‘Board of Peace’ initiative in January 2026—as a founding member, top financial contributor, and first Arab country to commit military forces—further increased diplomatic distance between Rabat and Algiers. This positioned Morocco as what analysts have called the Arab pivot of an emerging regional order anchored to the United States. Algeria, cultivating closer defense and energy ties with Russia and increasingly China, found itself on the opposite side of an emerging geopolitical divide that closely—though not exclusively—aligns with the historic Algerian-Moroccan rivalry.
Internal politics and the external threat narrative
A substantial body of political science research suggests that authoritarian and hybrid regimes facing domestic legitimacy deficits often benefit from external threat cultures—a dynamic sometimes termed diversionary conflict theory. Algerian political history provides recurrent illustrations of this phenomenon.
During the brutal civil conflict of the 1990s—triggered by the cancellation of 1991-92 elections won by the Islamic Salvation Front—the military-security establishment consolidated opaque, unaccountable power structures that critics long described through the contested but persistent trope of the “power” or “mafia of generals.” This configuration periodically found it opportune to invoke external threats, particularly Morocco, to reinforce internal cohesion and divert attention from governance failures.
The Hirak protest movement, which erupted in February 2019 after President Abdelaziz Bouteflika announced a fifth term, posed the most serious internal challenge to this system in a generation. The protests were largely peaceful, intergenerational, and focused on domestic demands—ending the grip of the politico-military elite, securing transparent elections, and accountable governance—rather than foreign policy grievances. However, the state’s response to the legitimacy crisis revealed through Hirak included, alongside real institutional adjustments, a perceptible intensification of external threat rhetoric. Accusations of foreign interference—often Moroccan and, after 2020, Israeli—occupied prominent positions in official and state-aligned media discourse. This pattern repeated during the 2021 diplomatic rupture, which occurred amid persistent social tensions and slow political transition under President Abdelmadjid Tebboune.
It would be reductive to claim that Algerian governance is exclusively organized around this diversionary logic. The state continues to invest substantially in housing, food and energy subsidies, higher education expansion, and industrial diversification efforts that reflect real domestic development priorities independent of the Moroccan rivalry. However, the recurrent coincidence between periods of internal political tension and intensified anti-Moroccan mobilization in official discourse is difficult to dismiss as coincidental, representing one of the clearest mechanisms through which external rivalry has become embedded in public policy.
The economic cost of prolonged confrontation
The most measurable price of enduring rivalry manifests in the economic sphere. The Arab Maghreb Union, founded in 1989 with great fanfare by Algeria, Morocco, Tunisia, Libya, and Mauritania, aimed for a common market, coordinated infrastructure, and eventual customs union modeled on the European Union. Instead, it has remained largely moribund for over three decades, with inactive ministerial councils and unfulfilled founding ambitions. Intra-Maghrebin trade remains among the lowest regional integration levels globally; various estimates place formal trade between Algeria and Morocco at less than 3% of each country’s total trade—a stark contrast with the typical intensity observed between neighboring economies with complementary endowments.
The land border closure since 1994—originally imposed by Morocco following a Marrakech terrorist attack partially attributed to Algerian security failures and never reopened despite occasional diplomatic openings—has entrenched this separation, fostering instead a vast informal economy and smuggling sector along the frontier that generates neither tax revenue nor regulated employment for either state. The 2021 suspension of the Maghreb-Europe gas pipeline ended a decades-old functional bilateral economic interdependence—one of the few to survive previous diplomatic freezes—in favor of parallel, mutually exclusive energy corridors. Algeria redirected gas exports via the Medgaz pipeline directly to Spain, while Morocco promoted the ambitious Nigeria-Morocco Atlantic gas pipeline project designed to connect West African gas fields to European markets through a route explicitly bypassing Algerian territory and implicitly undermining Algerian leverage over regional energy transit.
Comparatively, regional groupings with far less evident economic complementarity than Algeria and Morocco—such as the Association of Southeast Asian Nations, the Southern African Development Community, and even the more modest Gulf Cooperation Council—have achieved significantly higher levels of intra-regional trade and coordinated infrastructure investment over comparable periods. This underscores that Maghreb stagnation stems from political constraints rather than structural or geographic factors. Regional integration economists have long argued that a truly cooperative Maghreb could generate substantial welfare gains through integrated transport corridors linking Casablanca, Oran, Algiers, and Tunis; expanded intra-regional trade leveraging real comparative advantages, including Algerian hydrocarbons and Moroccan manufacturing and agricultural exports; coordinated renewable energy infrastructure exploiting shared Saharan solar potential; deeper regional capital markets; expanded tourism markets; and significantly enhanced collective bargaining power vis-à-vis the European Union and other external partners. Instead, both governments have pursued largely parallel, non-complementary development strategies—duplicated port and logistics infrastructure, competing rather than coordinated Sahelian and African engagement, defense spending largely oriented toward mutual deterrence—imposing what regional economists have termed one of the world’s most considerable unexploited integration dividends in the developing world.Military competition and the security dilemma
The material expression of rivalry is most visible in defense budgets. Algeria has maintained one of Africa’s highest military expenditures for over a decade, officially justified by instability along its borders with Libya, Mali, and Niger, and broader Sahel insecurity following the 2012 collapse of state authority in northern Mali and subsequent proliferation of jihadist and separatist armed groups. Algerian authorities consistently present these expenditures as defensive and regionally oriented rather than specifically directed against Morocco. Morocco, for its part, has undertaken parallel modernization of its armed forces, diversifying acquisitions among American, European, and—since the 2020 normalization—Israeli suppliers. This has included advanced air defense systems, precision-guided munitions, unmanned aerial systems, and deepened security and intelligence cooperation with Washington through the annual African Lion exercises, now among the largest multinational military maneuvers on the continent.
Even when each state’s security calculus responds to genuinely distinct threats—not Morocco-specific for Algeria’s southern and eastern borders, or Morocco’s Atlantic and Saharan posture—the modernization efforts of each party are almost invariably interpreted by the other through the lens of bilateral competition. This produces a classic security dilemma where defensive acquisitions are perceived as threatening, triggering reciprocal escalation. The closure of Algerian airspace to Moroccan aircraft since 2021, alongside periodic reports of reinforced troop deployments and fortifications along the closed land border, illustrates how the day-to-day management of the relationship has become militarized despite the absence of open conflict since 1963.
Competing models of regional leadership
Beyond security and diplomacy, Morocco and Algeria have in recent years articulated genuinely distinct development and geopolitical visions for their regional leadership, though these remain trapped in implicit competition. Morocco has pursued a strategy centered on economic diplomacy, South-South cooperation, and Atlantic-facing infrastructure: expansion of Moroccan banking, telecoms, and construction investments across West and Central Africa; promotion of the Nigeria-Morocco gas pipeline as a continental connectivity project; and most recently, the launch of the African Atlantic States Initiative designed to provide Sahelian states—many now governed by juntas at odds with Paris and, in several cases, ECOWAS—with Atlantic access via Moroccan Saharan ports. This positions the Kingdom as an indispensable logistical bridge between landlocked Sahel and global markets.
Algeria, leveraging its hydrocarbon wealth, larger military establishment, and long-cultivated identity of anti-colonial and non-aligned solidarity rooted in the FLN’s role in third-world liberation movements, has emphasized direct engagement with Sahelian governments, mediation efforts in Malian internal conflicts (despite the 2024 breakdown of the Algiers Accords process with Bamako’s military government), and a foreign policy identity anchored in sovereignist and anti-interventionist principles. These strategies are not inherently mutually exclusive; a truly cooperative Maghreb could theoretically accommodate both a Moroccan Atlantic corridor and an Algerian Sahelian mediation role. In practice, however, each initiative is systematically read by the other capital as an attempt at regional encirclement, with diplomatic energy that might otherwise support regional development instead devoted to mutual containment.
Public diplomacy and the media battle
The rivalry extends beyond formal diplomacy, defense acquisitions, and infrastructure decisions into sustained competition for international public opinion and media narratives. Both governments maintain extensive networks of aligned media outlets, foreign lobbying arrangements, and academic and think-tank outreach designed to shape how the Western Sahara dispute and the broader bilateral relationship are perceived by external audiences, particularly in Washington, Brussels, and Paris.
Moroccan diplomacy has invested heavily in building relationships with American and European policymakers, journalists, and parliamentarians, yielding significant dividends with the 2020 U.S. recognition of Moroccan sovereignty over Western Sahara and the broader diplomatic momentum favoring the autonomy plan. Algerian diplomacy has responded in kind, mobilizing its own networks—including sympathetic voices within pro-Polisario advocacy circles, segments of the European left, and African liberation solidarity networks inherited from the FLN’s revolutionary past—to contest Moroccan sovereignty claims and publicize alleged human rights violations in Moroccan-administered Western Sahara.
This competition has occasionally spilled into unrelated state friction. Diplomatic tensions between Algeria and France over historical memory, migration, and the 2024 detention of Algerian-French dissidents have occurred in a context where Algiers explicitly linked French political choices to what it perceives as pro-Rabat leanings within Parisian political and media establishments. This illustrates how the Moroccan rivalry has come to color even relationships like that with France, which possess their own long-standing, independent bilateral logic. The result is a regional information environment where even ostensibly unrelated developments—a European Parliament resolution, a UN human rights report, a Sahelian coup—are systematically interpreted by both capitals through the interpretive grid of rivalry, confirming the finding that underpins this analysis: not that Morocco explains everything in Algerian policy, but that little in Algerian regional policy remains entirely immune to this rivalry’s influence.
Assessing Algeria’s long-term strategy: Beyond the Morocco prism
Having examined the rivalry across multiple interconnected domains, a more nuanced verdict on the initial question becomes possible. The claim that opposing Morocco constitutes Algeria’s sole long-term national program does not withstand scrutiny. Algeria faces a genuinely broad portfolio of national priorities largely independent of Rabat: maintaining political stability during an ongoing post-Hirak transition; reducing an economy still heavily dependent on hydrocarbon rents despite years of diversification rhetoric; addressing acute youth employment and demographic pressures in a country where the majority of the population is under 35; securing food and water supplies amid recurrent droughts; modernizing aging infrastructure; and managing an exceptionally complex and volatile security environment along its Libyan, Malian, Nigerien, Tunisian, and Mauritanian borders—most of which has nothing to do with the Moroccan dossier.
Yet the opposite, nuanced thesis is equally well-supported: the rivalry with Morocco has become one of the most enduring, consistently invoked, and decisive principles of Algerian regional strategy, disproportionately influential compared to its objective weight among Algeria’s many national interests. Few other bilateral relationships so consistently and visibly shape Algerian diplomatic alignment (Israel, the Board of Peace framework, African Union positioning), defense acquisition and deployment patterns, energy and infrastructure policy (abandonment of the Maghreb-Europe gas pipeline, redirection of export corridors), and domestic political discourse as the Moroccan dossier does. The rivalry functions less as one interest among others, competing for political attention on equal footing, than as a persistent filter through which a wide range of otherwise unrelated domains come to be interpreted—and frequently distorted.
The opportunity cost of this configuration is considerable and increasingly well-documented. North Africa remains one of the world’s least economically integrated regions, despite possessing precisely the type of complementary economic endowments—Algerian energy and capital, Moroccan manufacturing, logistics, and market access—that elsewhere in the world have driven successful regional integration projects. The persistence of confrontation, rather than the underlying Western Sahara territorial dispute itself, appears as the most immediate obstacle to regional cooperation, since this dispute could in principle coexist with functional economic relations, as was largely the case during 1988-1994 and partially until hostilities resumed in the 2020s.
Rivalry or renewal? Prospects for the Maghreb
The trajectory of North Africa’s regional order in the coming decade will largely depend on Algeria and Morocco’s ability to build functional cooperation mechanisms that do not require prior resolution of the Western Sahara dispute—a resolution that, given hardened and mutually incompatible positions, appears unlikely in the short term regardless of shifts in international recognition patterns. Confidence-building measures of the type that have periodically eased other prolonged regional disputes elsewhere in the world could begin to erode the rigidity of the current impasse without requiring either government to abandon its fundamental sovereignty position. Such measures might include technical dialogue on shared Sahelian threats like terrorism, arms trafficking, and organized crime; gradual sectoral economic exchanges insulated from broader diplomatic freezes; and expanded consular and interpersonal contacts for the large diaspora populations with family ties across the closed border.
The realization of such measures depends heavily on domestic political conditions in both countries that extend beyond strict bilateral diplomacy: the trajectory of Algeria’s post-Hirak political transition and the internal balance between reformist factions and those attached to the status quo within its security establishment; the pace and solidity of Morocco’s ongoing diplomatic consolidation around its Saharan sovereignty claim, which reduces incentives for Rabat to offer concessions that might be perceived domestically as superfluous; and the broader realignment of external alignments—American, European, Russian, Chinese, and Gulf—that is increasingly overlaying and hardening the underlying bilateral dispute.
Conclusion: Beyond the rivalry that defined a generation
The relationship between Algeria and Morocco represents one of the most defining—and costly—features of contemporary North African geopolitics. It would be inaccurate and analytically reductive to conclude that countering Morocco constitutes Algeria’s sole long-term political and economic program. Algerian state action responds to a genuinely broad range of domestic and regional priorities independent of Rabat, spanning Sahelian security to hydrocarbon diversification to demographic management. Yet it would be equally erroneous to treat this rivalry as a marginal or merely episodic feature of Algerian policy.
Across diplomacy, domestic politics, economics, and defense planning, opposition to Morocco has become one of the most constant, institutionalized, and costly threads of Algerian state action since 1962—a pattern that has hardened rather than softened through successive crises in 2020-2021 and 2026. Whether this pattern continues to dominate the North African landscape or gradually gives way to pragmatic, sectoral cooperation will determine not only the future of Algeria and Morocco themselves, but also the stability, prosperity, and integration of the entire Maghreb. The region’s considerable and unexploited potential stands as the most compelling evidence that prolonged rivalry, however deeply rooted in history and grievance, imposes costs that neither society can indefinitely afford.
The analytical task is therefore not to arbitrate which party bears greater responsibility for the impasse—a question that exceeds the scope of a dispassionate scientific analysis and to which each side’s domestic discourse responds predictably and uniformly in the other’s disfavor—but to recognize the structural pattern revealed by the facts: a rivalry born of a colonial border dispute, hardened by the Sand War and the unresolved Western Sahara question, into a self-sustaining organizing logic capable of absorbing and reconfiguring nearly all related domains it touches, from Amazigh cultural politics to Sahelian diplomacy to hydrocarbon infrastructure. Measuring the scope of this logic, and the considerable margin of maneuver each government possesses to loosen its grip, constitutes the necessary precondition for any future in which the shared geography of the Maghreb becomes an asset rather than, as it has been for the past half-century, a perpetually contested border.
