Few bilateral relationships in modern geopolitics have proven as enduringly contentious—or as consequential for regional stability—as the one between Algeria and Morocco. Since emerging from French and Spanish colonial rule in the mid-20th century, their ties have swung between cautious cooperation and open hostility, marked by border clashes, diplomatic ruptures, and a Cold War-style rivalry for regional dominance that has outlasted generations of leaders on both sides of the Zouj Bghal border crossing. But is the act of opposing Morocco now, in effect, Algeria’s long-term national strategy—the guiding principle shaping its foreign policy, military posture, regional diplomacy, and even aspects of its domestic legitimacy?
The question is deliberately provocative. To frame Algeria’s actions as a single-minded obsession with Morocco would oversimplify a complex foreign policy tradition shaped by history, economic realities, and multiple security threats along five borders. Yet the opposite claim—that Morocco plays only a minor role in Algeria’s strategic calculus—simply doesn’t hold up either.
This analysis argues for a middle ground: while not the sole driving force behind Algeria’s actions, opposition to Morocco has become one of the most enduring, institutionalized, and costly principles organizing Algeria’s regional policy. It is not the whole story, but it is a constant thread running through diplomacy, defense planning, energy policy, and domestic discourse—one that has deepened rather than eased in recent crises.
Historical roots: from colonial borders to the Sands War
Few rivalries in modern diplomacy have roots as deep or as tangled as the Algerian-Moroccan divide. The colonial cartography of France and Spain redrew the Saharan and pre-Saharan frontier over more than a century, annexing territories—around Tindouf, Béchar, and Figuig—that Rabat had historically administered or claimed. Morocco gained independence in 1956, six years before Algeria, and its nationalists, including the future King Hassan II, initially framed Algeria’s liberation struggle as a shared Maghreb cause, offering sanctuary, arms, and diplomatic support to the National Liberation Front (FLN) during the 1954–1962 war.
Rabat expected an independent Algeria—grateful for that support—to negotiate the return of territories lost to colonization. Instead, Algeria’s post-independence leadership under Ahmed Ben Bella adopted the principle that colonial borders were sacrosanct and non-negotiable. This stance was later enshrined continent-wide by the 1964 OAU resolution on the inviolability of colonial borders.
The result was the brief but foundational Sands War of October 1963, pitting Moroccan and Algerian forces in Tindouf and Figuig. Though a ceasefire was brokered within weeks through OAU mediation and Ethiopian arbitration, the conflict left a residue of strategic mistrust. For Algeria’s revolutionary elite, the war confirmed Morocco as an irredentist, expansionist neighbor aligned with Western interests. For Morocco’s monarchy, it confirmed Algeria as an ideologically assertive state, closely tied to the Soviet Union and willing to use force against a neighbor that had once hosted its liberation movement. These perceptions, however partisan, have proven remarkably durable, resurfacing in every subsequent crisis.
Academic perspectives on the rivalry
Academic literature on Algerian-Moroccan relations converges—with minor variations in emphasis—toward a broadly similar diagnosis. Comparative studies of regional security provision in the Maghreb have characterized both states as competing “regional security providers,” whose overlapping leadership claims generate structural friction independent of any specific dispute (Boukhars, 2019). Historians of French Algeria have situated the rivalry within a longer colonial and postcolonial genealogy, arguing that 130 years of occupation and the independence war shaped an Algerian political identity steeped in sovereignty and anti-interventionism, far more suspicious of external entanglement—including Moroccan—than Morocco’s own postcolonial trajectory (Stora, 2020; Stora, 2021). Analyses of the 2019 Hirak protests similarly emphasize domestic, institutional demands—transparency and accountability of the ruling elite—though later, the state mobilized narratives of external threat to consolidate its position (Souiah, 2021).
Taken together, this body of work does not support a monocausal reading in which Morocco explains all of Algeria’s foreign policy. But it consistently identifies the rivalry as a structural feature—not a marginal one—of the regional order, rooted in divergent colonial and revolutionary experiences that produced the two states.
Berber identity: a shared heritage turned into a geopolitical wedge
One of the rivalry’s least examined but analytically significant dimensions involves competing claims to Berber (Amazigh) identity and heritage. Both Algeria and Morocco have large Amazigh-speaking populations—concentrated in Kabylie, the Aurès, and M’Zab in Algeria, and in the Rif, Middle Atlas, and Souss in Morocco. While both countries have, at different times and with varying degrees of sincerity, granted constitutional recognition to Tamazight—the Amazigh language—Algeria in 2016 and Morocco in 2011—the political meaning attached to this identity diverges sharply.
In Algeria, the Kabyle Amazigh movement has at times advanced autonomy claims that the central government has treated as a security issue. Algerian authorities have occasionally accused Morocco of secretly encouraging Kabyle separatism as a tool of destabilization, a charge Rabat has consistently denied. In Morocco, by contrast, the monarchy has integrated Amazigh cultural recognition—including the creation of the Royal Institute of Amazigh Culture in 2001 and the 2011 constitutional reform—into a unifying national narrative centered on the monarchy rather than framing it as a separatist threat.
This contrast illustrates how a shared civilizational heritage, rooted in a pre-Arab-Islamic Amazigh substrate common to both societies, has been refracted through the prism of bilateral rivalry rather than serving as a foundation for cross-border cultural cooperation.
The Western Sahara dispute: the enduring institutional core of the rivalry
If the Sands War shaped the psychological architecture of the rivalry, the Western Sahara dispute provided its durable institutional content. Spain’s withdrawal from its Saharan colony in 1975—precipitated by Morocco’s mobilization of some 350,000 unarmed civilians in the Green March—triggered a conflict that has structured bilateral relations for half a century. Morocco has since administered most of the territory, presenting an autonomy plan under Moroccan sovereignty as the only realistic basis for resolution. Algeria, while formally rejecting any territorial ambition over Western Sahara, has hosted the Polisario Front’s government-in-exile and refugee camps since 1976, provided diplomatic, financial, and at times military support, and defended the self-determination claim of the Sahrawi Arab Democratic Republic at the African Union and United Nations.
The narratives of each side are total and mutually exclusive. Algiers frames its position as the application of the UN Charter’s self-determination doctrine and the continuity of its anti-colonial legacy. Rabat, along with a growing number of external observers, argues that Algeria is a de facto party to the dispute rather than a neutral sponsor of Sahrawi self-determination, pointing to the Polisario’s location, financing, and institutional dependence on Algerian territory—a claim Algiers consistently denies.
The dispute has proven self-sustaining. Because sovereignty over Western Sahara is presented by Rabat as a matter of territorial integrity—the most sacred national cause—and by Algiers as a principle of decolonization, neither government has the domestic margin to compromise without appearing to betray a foundational commitment. Over five decades, this mutual entrenchment has transformed a regional territorial dispute into a fixed coordinate around which nearly all other dimensions of the bilateral relationship—and much of Algeria’s broader foreign policy—have come to organize themselves.
The diplomatic dynamic shifted markedly after 2020, when the United States recognized Moroccan sovereignty over Western Sahara as part of the Morocco-Israel normalization agreement. This shift accelerated as a growing number of European and African governments—led by France, given its long-awaited strategic treaty with Morocco—moved toward explicit or implicit support for Morocco’s autonomy plan. Algeria interpreted this trend as proof of encirclement rather than an incentive to recalibrate, a perception that has, if anything, hardened its posture.
Algeria’s foreign policy through the Morocco lens
Algerian diplomacy since the 1970s has followed a recurring pattern: initiatives pursued for their own sake—African solidarity, energy diplomacy, non-alignment, security cooperation—have often also served as instruments to contain Moroccan influence. Several arenas illustrate this dynamic with particular clarity.
African Union. Algeria played a key role in the admission of the Sahrawi Arab Democratic Republic to the Organization of African Unity in 1984, a move that prompted Morocco’s withdrawal from the pan-African body for 33 years. When Morocco re-joined the African Union in January 2017—replacing its “empty chair” strategy with direct diplomatic engagement—Algeria intensified its own continental outreach, courting Sahelian and sub-Saharan capitals in what amounted to a renewed competition for African recognition of the two rival Saharan positions.
Normalization with Israel. Morocco’s December 2020 decision to normalize relations with Israel, secured in exchange for U.S. recognition of its Western Sahara sovereignty claim, 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 move as a strategic repositioning that brought Israeli security and intelligence presence to its western flank. Algerian authorities, along with much of the state-aligned press, subsequently promoted the notion of an “anti-Algeria axis” linking Rabat, Washington, and Tel Aviv—a framing that, while likely overestimating Algeria’s centrality in Israeli strategic calculations, nevertheless concretely shaped Algerian threat perceptions and defense planning.
Breakdown and escalation, 2021. In August 2021, Algeria formally severed diplomatic relations with Morocco, citing what it called hostile acts. It closed its airspace to Moroccan civilian and military aircraft, permanently suspended the Maghreb-Europe gas pipeline that had for a quarter-century carried Algerian gas through Moroccan territory to Spain, and maintained the land border closure in place since 1994. These measures, still in force at the time of writing, constitute the most severe institutionalization of bilateral hostility since the Sands War, illustrating how a bilateral dispute has come to condition Algeria’s policies on infrastructure, energy, and airspace.
Reconfiguration in 2026. Morocco’s foundational participation in the U.S.-sponsored “Board of Peace” initiative in January 2026—as a founding member, top financial contributor, and the first Arab state to commit troops—further widened the diplomatic gap between Rabat and Algiers. This move consolidated Morocco’s positioning as what one analysis termed the Arab pivot of an emerging regional order anchored in Washington. Algeria, which has cultivated closer defense and energy ties with Russia and increasingly with China, now finds itself on the opposite side of an emerging geopolitical fault line—a divergence that closely—and not coincidentally—mirrors the old Algerian-Moroccan rivalry.
Domestic politics and the uses of external rivalry
A substantial body of political science literature argues that authoritarian and hybrid regimes facing domestic legitimacy deficits often derive domestic benefits from external threat narratives—a dynamic sometimes described as diversionary conflict theory. Algerian political history offers recurring illustrations. During the brutal civil conflict of the 1990s, triggered by the annulment of the 1991–1992 elections won by the Islamic Salvation Front, the militarized establishment consolidated an opaque, unaccountable power structure that critics and opposition voices long described through the contested but persistent trope of the “power” or the “mafia of generals”—a governing configuration in which military, security, and economic interests are tightly intertwined and largely insulated from electoral accountability. This configuration periodically found it expedient to invoke external threats, Morocco foremost among them, to bolster internal cohesion and divert attention from governance failures.
The Hirak protest movement, which erupted in February 2019 following President Abdelaziz Bouteflika’s announcement of a fifth term, posed the most serious internal challenge to this system in a generation. The protests were overwhelmingly peaceful, intergenerational, and centered on domestic demands—ending the grip of the politico-military elite, securing transparent elections and accountable governance—rather than foreign policy grievances (Souiah, 2021). Yet the state’s response to the legitimacy crisis exposed by the Hirak included, alongside real institutional adjustments, a perceptible intensification of external threat rhetoric. Accusations of foreign interference—often Moroccan and, after 2020, Israeli—occupied a prominent place in official and state-aligned media discourse. This pattern repeated itself during the 2021 diplomatic rupture, which followed a period of persistent social tension and slow political transition under President Abdelmadjid Tebboune.
It would be reductive to argue 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, reflecting real and independent domestic development priorities. But the recurring coincidence between moments of political tension and the intensification of anti-Moroccan mobilization in official discourse is hard to dismiss as coincidental and represents one of the clearest mechanisms by which external rivalry has become embedded in public policy.
The economic cost of prolonged confrontation
Nowhere is the price of prolonged rivalry more measurable than in the economic sphere. The Arab Maghreb Union, founded with great fanfare in 1989 by Algeria, Morocco, Tunisia, Libya, and Mauritania, aimed for a common market, coordinated infrastructure, and ultimately a customs union modeled loosely on the European experience. Instead, it has remained moribund for more than three decades, its ministerial councils largely inactive and its founding ambitions unfulfilled. Intra-Maghrebi trade remains among the lowest in the world; various estimates place formal trade between Algeria and Morocco at less than 3% of each country’s total trade—a stark contrast with the commercial intensity typically observed between neighboring economies with complementary endowments.
The closure of the land border since 1994—imposed initially by Morocco following a terrorist attack in Marrakech that Rabat partly attributed to Algerian security failures, and never reopened despite occasional diplomatic openings—entrenched this separation, fostering instead a vast informal and smuggling economy along the frontier that generates neither tax revenue nor regulated employment for either state. The 2021 permanent suspension of the Maghreb-Europe gas pipeline ended a functional and decades-old bilateral economic interdependence, one of the few to survive previous diplomatic freezes. In its place emerged parallel and mutually exclusive energy corridors: Algeria redirected its gas exports via the Medgaz pipeline directly to Spain, while Morocco promoted the ambitious Atlantic gas pipeline project linking West African gas fields to European markets via a route explicitly bypassing Algerian territory and, implicitly, Algerian leverage over regional transit.
For comparison, regional groupings with far less obvious economic complementarity than Algeria and Morocco—such as the Association of Southeast Asian Nations, the Southern African Development Community, or 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 reflects a political constraint rather than a purely structural or geographic one. Regional 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 Algeria’s hydrocarbons and Morocco’s manufacturing and agricultural exports; coordinated renewable energy infrastructure exploiting shared Saharan solar potential; deeper regional capital markets; expanded tourism markets; and a collective bargaining position 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 Sahelian and African outreach, and defense spending largely oriented toward mutual deterrence—imposing what regional economists have termed one of the most considerable unexploited integration dividends in the developing world.
Military competition and the security dilemma
The material expression of the rivalry is nowhere more visible than in defense budgets. Algeria has maintained one of Africa’s highest military expenditures for more than a decade, officially justified by instability along its borders with Libya, Mali, and Niger, and broader Sahel insecurity following the collapse of state authority in northern Mali after 2012 and the subsequent proliferation of jihadist and separatist armed groups in the region. Algerian authorities consistently frame these expenditures as defensive and regionally oriented rather than specifically directed against Morocco. Morocco, for its part, has pursued parallel and substantial military modernization, diversifying acquisitions among American, European, and—since the 2020 normalization—Israeli suppliers. It has acquired advanced air defense systems, precision-guided munitions, and unmanned aerial systems, while deepening security and intelligence cooperation with Washington through the annual African Lion exercises, now among the largest multinational military drills on the continent.
Even when each state’s security calculus responds to genuinely distinct threats—not Morocco-specific in the case of Algeria’s southern and eastern borders, or Morocco’s Atlantic and Saharan posture—the modernization efforts of each are almost invariably interpreted by the other through the lens of bilateral competition. This produces a classic security dilemma in which defensive acquisitions are perceived as threatening, triggering reciprocal escalation. The closure of Algerian airspace to Moroccan aircraft since 2021, along with 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 advanced genuinely distinct visions of development and geopolitical leadership for their own regional roles, though these visions 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 more recently, the launch of the African Atlantic States Initiative, designed to give landlocked Sahelian states—many now governed by juntas estranged from Paris and, in several cases, from ECOWAS—access to the Atlantic via Moroccan Saharan ports. This positions the Kingdom as an indispensable logistics 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 instead emphasized direct engagement with Sahelian governments, mediation efforts in Malian internal conflicts (notwithstanding the 2024 rupture 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, in the abstract, mutually exclusive; a truly cooperative Maghreb could in principle 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, and diplomatic energy that might otherwise support complementary regional development is instead devoted to mutual containment.
Public diplomacy and the battle of narratives
The rivalry is not confined to formal diplomacy, defense acquisitions, or infrastructure decisions. It also plays out in a sustained competition for international public opinion and media narratives. Both governments maintain extensive networks of aligned media, 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 U.S. and European policymakers, journalists, and parliamentarians, an effort that bore significant fruit with the 2020 U.S. recognition of Moroccan sovereignty over Western Sahara and the subsequent diplomatic momentum in favor of 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 solidarity networks inherited from the FLN’s revolutionary past—to contest Moroccan sovereignty claims and publicize allegations of human rights abuses in Moroccan-administered Western Sahara.
This competition has occasionally spilled into unrelated state frictions. Diplomatic tensions between Algeria and France over historical memory, migration, and, most recently, the 2024 detention of Franco-Algerian dissidents have arisen in a context where Algiers explicitly linked Parisian policy choices to what it perceives as a pro-Rabat tilt within France’s political and media establishment. This illustrates how the Moroccan rivalry has come to color even relationships—such as the one with France—that possess their own long-standing bilateral logic.
The result is a regional information environment in which 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 the rivalry. This confirms the central finding of this analysis: not that Morocco explains everything in Algerian policy, but that very little in Algerian regional policy remains entirely untouched by this rivalry.
Is countering Morocco Algeria’s sole long-term strategy? An assessment
Having traced the rivalry across multiple intertwined domains, a more precise verdict on the initial question becomes possible. The claim that opposing Morocco constitutes Algeria’s *only* long-term national program does not withstand scrutiny. Algeria faces a genuinely broad portfolio of national priorities largely independent of Rabat: maintaining political stability in the context of an unfinished post-Hirak transition; reducing an economy still heavily reliant on hydrocarbon rents despite years of diversification rhetoric; addressing acute youth employment and demographic pressures in a country where a majority of the population is under 35; ensuring food and water security amid recurrent droughts; modernizing aging infrastructure; and managing an exceptionally complex and volatile security environment along its Libyan, Malian, Nigerien, Tunisian, and Mauritanian borders, much of which has no direct connection to the Moroccan dossier.
Yet the nuanced counter-thesis is equally well supported: rivalry with Morocco has become one of the most enduring, consistently invoked, and determinative principles shaping Algeria’s regional strategy—disproportionately so relative to its objective weight among Algeria’s many national interests. Few other bilateral relationships so consistently and visibly shape Algeria’s diplomatic alignment (Israel, the Board of Peace framework, AU positioning), defense acquisition and deployment patterns, energy and infrastructure policy (abandonment of the Maghreb-Europe pipeline, redirection of export corridors), and domestic political discourse as does the Morocco file. The rivalry functions less like one interest among others, on a level playing field in the competition for political attention, and more like 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 substantial and increasingly well documented. North Africa remains one of the least economically integrated regions in the world despite possessing precisely the kind of complementary economic endowments—Algerian energy and capital, Moroccan manufacturing, logistics, and market access—that elsewhere in the world have powered successful regional integration projects. The persistence of confrontation, rather than the underlying territorial dispute over Western Sahara itself, appears as the most immediate obstacle to regional cooperation, since the dispute could in principle coexist with functional economic relations, as it largely did during the 1988–1994 period and, in more limited form, until the resumption of hostility in the 2020s.
Rivalry or renewal? Prospects for the Maghreb
The trajectory of the North African regional order in the coming decade will largely depend on Algeria and Morocco’s ability to build functional cooperation mechanisms that do not require the 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 sort that have periodically eased other prolonged regional disputes elsewhere in the world—technical dialogue on shared Sahelian threats such as terrorism, arms trafficking, and organized crime; gradual sectoral economic exchanges isolated from the broader diplomatic freeze; expanded consular and interpersonal contacts for the large Algerian and Moroccan diaspora populations with family ties across the closed border—could, in principle, begin to erode the rigidity of the current impasse without requiring either government to abandon its core position on sovereignty.
The realization of such measures depends heavily on domestic political conditions in both countries that lie beyond the strict scope of bilateral diplomacy: the trajectory of Algeria’s post-Hirak political transition and the internal balance between reformist factions and security establishment factions attached to the status quo; the pace and durability of Morocco’s ongoing diplomatic consolidation around its Western Sahara sovereignty claim, which reduces incentives for Rabat to offer concessions that might be seen domestically as unnecessary; and the broader realignment of external alignments—American, European, Russian, Chinese, and Gulf—that increasingly overlays and hardens the underlying bilateral dispute in places.
Conclusion
The relationship between Algeria and Morocco stands as one of the defining—and most costly—features of contemporary North African geopolitics. To conclude that countering Morocco constitutes Algeria’s *sole* long-term political and economic program would be analytically reductive. The Algerian state responds to a genuinely broad range of domestic and regional priorities independent of Rabat, from Sahelian security to hydrocarbon diversification to demographic management. Yet it would be equally mistaken 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 running through Algerian state action since 1962—a pattern that has hardened rather than eased 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—a region whose considerable and untapped potential offers the most compelling proof that prolonged rivalry, however deeply rooted in history and grievance, imposes costs that neither society can indefinitely afford.
The analytical task, therefore, is not to arbitrate which side bears the greater responsibility for the impasse—a question that lies beyond the scope of dispassionate scholarship and to which each side’s domestic discourse responds predictably and uniformly in favor of its own narrative—but to recognize the structural pattern revealed by the facts: a rivalry born of a colonial border dispute, hardened by the Sands War and the unresolved Western Sahara question, into a self-sustaining organizing logic capable of absorbing and reconfiguring nearly every adjacent domain it touches, from Amazigh cultural politics to Sahelian diplomacy to hydrocarbon infrastructure.
Measuring the extent of this logic—and the considerable margin of maneuver each government possesses to loosen its grip—is the necessary prerequisite 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 frontier.