Algeria and Morocco: a rivalry that shapes North African geopolitics
Few bilateral relationships in the modern era have proven as persistently conflictual or as consequential for regional stability as the one between Algeria and Morocco. Since both nations emerged from French and Spanish colonial rule in the mid-20th century, their ties have seesawed between cautious cooperation and open hostility, marked by border wars, diplomatic ruptures, closed frontiers, and a cold-war-style rivalry for regional dominance that has outlasted successive generations of leaders on both sides of the Zouj Bghal crossing. A provocative question emerges: has opposition to Morocco become Algeria’s enduring long-term national strategy—a guiding principle shaping its foreign policy, military posture, regional diplomacy, and even aspects of its domestic legitimacy?
Algeria-Morocco tensions: more than just historical baggage
While reducing Algeria’s strategic calculus to a single obsession would oversimplify a complex foreign policy tradition shaped by history, demographics, and security challenges, the opposite claim—that Morocco plays no meaningful role in Algeria’s strategic planning—similarly lacks credibility. This analysis argues that the rivalry with Morocco has evolved into one of the most enduring, institutionalized, and costly pillars of Algeria’s regional policy, without entirely defining its broader strategic horizon. The examination traces the historical roots of this antagonism, evaluates its academic interpretations, explores the understudied dimension of Amazigh identity politics, and assesses how the Western Sahara dispute has become a structural framework for bilateral relations. It then weighs the evidence for and against the central thesis—whether countering Morocco has indeed become Algeria’s long-term national strategy—before considering whether the two nations can transcend their zero-sum framework to unlock the region’s untapped potential.
From colonial cartography to armed conflict: the roots of antagonism
The seeds of Algerian-Moroccan hostility were sown long before either nation achieved independence. During more than a century of French colonial rule, the colonial administration redrew the Saharan and pre-Saharan frontier, 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 Moroccan nationalists, including the future King Hassan II, initially framed Algeria’s liberation struggle as a shared Maghreb cause, providing sanctuary, arms supply routes, and diplomatic support to the National Liberation Front (FLN) during the 1954–1962 war of independence.
Rabat expected that an independent Algeria would reciprocate this solidarity by negotiating the return of territories lost to colonial borders. This expectation collided with Algeria’s post-independence leadership under Ahmed Ben Bella, which adopted the principle—later enshrined continent-wide by the 1964 OAU Cairo resolution—that colonial borders were sacrosanct and non-negotiable. The result was the Sand War of October 1963, a brief but formative conflict fought in the Tindouf and Figuig sectors. Though a ceasefire was brokered within weeks through OAU and Ethiopian mediation, the war left a lingering residue of strategic mistrust. For Algeria’s revolutionary elite, it confirmed the perception of the Moroccan monarchy as an expansionist neighbor aligned with conservative Western interests. For the Moroccan palace, it reinforced the view of Algeria as an ideologically assertive state, aligned with the Soviet Union and willing to use force against a country that had hosted its liberation movement. These mutually reinforcing narratives have proven remarkably durable, resurfacing during every subsequent crisis.
Academic perspectives: rival security providers in the Maghreb
Academic literature on Algerian-Moroccan relations converges, with minor variations, toward a shared diagnosis. Comparative studies on regional security provision in the Maghreb characterize both states as competing “regional security providers,” whose overlapping leadership claims generate structural friction independent of any specific dispute. Historians tracing Algeria’s colonial and postcolonial trajectory locate the 130-year occupation and independence war at the core of Algerian political identity, fostering a foreign policy culture that is markedly sovereigntist, anti-interventionist, and inherently distrustful of external engagements—including those involving Morocco. Research on the 2019 Hirak protests highlights that the movement’s central demands were domestic and institutional—focused on transparency and elite accountability—though the state later mobilized narratives of external threat, often involving Morocco, to consolidate its legitimacy.
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, rather than peripheral, feature of the regional order, rooted in colonial and revolutionary experiences that produced two states with fundamentally different worldviews.
Amazigh identity: a shared heritage weaponized in rivalry
A less frequently examined layer of the rivalry concerns competing claims to Amazigh (Berber) heritage. Both Algeria and Morocco host significant Amazighophone populations—concentrated in Kabylie, the Aurès, and M’zab in Algeria, and in the Rif, Middle Atlas, and Souss in Morocco. While both states have, at varying paces and degrees of sincerity, granted constitutional recognition to Tamazight (the Amazigh language)—Morocco in 2011 and Algeria in 2016—the political meanings attached to Amazigh identity diverge sharply between the two capitals, and this divergence has periodically been folded into the broader rivalry.
In Algeria, the Kabyle Amazigh movement has occasionally advanced autonomy claims that the central government has treated as a security matter. Algerian authorities have at times accused Morocco of secretly encouraging Kabyle separatism as a tool of destabilization, an accusation Rabat has consistently denied. In Morocco, the palace has integrated cultural Amazigh recognition—exemplified by the creation of the Royal Institute of Amazigh Culture in 2001 and the 2011 constitutional reforms—into an inclusive national narrative centered on the monarchy rather than treating it as a separatist threat. This contrast illustrates how a shared civilizational heritage, rooted in the pre-Arab-Islamic Amazigh substratum, has been refracted through the conflictual prism of bilateral rivalry rather than serving, as it might, as a foundation for cross-border cultural cooperation.
The Western Sahara dispute: the institutional backbone of rivalry
While the Sand War forged the psychological architecture of the rivalry, the Western Sahara dispute provided its enduring institutional content. Spain’s withdrawal from its Saharan colony in 1975, precipitated by Morocco’s mobilization of 350,000 civilians in the Green March, triggered a conflict that has structured bilateral relations for half a century. Morocco has since annexed and administered most of the territory, proposing 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 championed the self-determination claim of the Sahrawi Arab Democratic Republic in African Union and United Nations forums.
The narratives of each side are totalizing and mutually exclusive. Algiers frames its position as the application of a principle rooted in the UN Charter’s self-determination doctrine and the continuity of its own anti-colonial genealogy. Rabat, along with a growing number of external observers, contends that Algeria is a de facto party to the dispute rather than a neutral sponsor of Sahrawi self-determination, pointing to the Polisario leadership’s location, financing, and institutional dependence on Algerian territory—a claim Algiers consistently denies. The dispute has proven strategically self-sustaining: because Moroccan sovereignty over Western Sahara is framed as a matter of territorial integrity—the country’s most sacred national cause—and by Algeria as a matter of decolonization principle, neither government possesses the domestic margin to compromise without appearing to betray a foundational commitment. This mutual entrapment has, over five decades, 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, now revolve.
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, a trend that accelerated as an increasing number of European and African governments—led by France, given the long-awaited Franco-Moroccan strategic treaty—moved toward explicit or implicit support for the autonomy plan. Algeria interpreted this trend not as a reason for recalibration but as evidence of encirclement, a perception that, if anything, has hardened its posture.
Algeria’s foreign policy through the Morocco lens
Algerian diplomacy since the 1970s has exhibited a recurring pattern: initiatives pursued in their own right—African solidarity, energy diplomacy, non-alignment, security cooperation—frequently also serve as instruments to contain Moroccan influence. Several arenas illustrate this dynamic with particular clarity.
African Union. Algeria played a pivotal role in the admission of the Sahrawi Arab Democratic Republic to the Organization of African Unity in 1984, a decision that triggered Morocco’s 33-year withdrawal from the pan-African body. When Morocco rejoined 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 rival Sahrawi 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 an entirely new axis of confrontation. Algeria, whose foreign policy identity has long integrated solidarity with the Palestinian cause as an ideological principle, interpreted the move as a strategic repositioning that brought Israeli security and intelligence presence to its western flank. Algerian authorities and much of the state-aligned press 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, has nonetheless concretely shaped Algerian threat perception and defense planning.
Breakdown and escalation, 2021. In August 2021, Algeria formally severed diplomatic relations with Morocco, citing what it termed hostile acts, then closed its airspace to Moroccan civilian and military aircraft, permanently suspended the Maghreb-Europe Gas Pipeline that had, for a quarter-century, transported Algerian gas through Moroccan territory to Spain, and maintained the land border closure imposed since 1994. These measures, still in effect at the time of writing, represent the most severe institutionalization of bilateral hostility since the Sand War, illustrating how a bilateral dispute has come to condition Algeria’s infrastructure, energy, and airspace policies.
2026 realignment. Morocco’s founding 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 assets—further widened the diplomatic distance between Rabat and Algiers, reinforcing Morocco’s positioning as what one analysis termed the Arab pivot of an emerging regional order anchored to the United States. Algeria, forging closer defense and energy ties with Russia and increasingly China, found itself on the opposite side of an emerging geopolitical fault line that closely—and not accidentally—aligns with the long-standing Algerian-Moroccan rivalry.
Domestic politics and the instrumentalization of external rivalry
A significant strand of political science argues that authoritarian and hybrid regimes facing domestic legitimacy deficits often derive benefit from external threat cultures—a dynamic sometimes described as diversionary conflict theory. Algerian political history offers recurrent 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 military-security establishment consolidated an opaque, unaccountable form of power—criticized by opponents as the “deep state” or “generals’ mafia”—in which military, security, and economic interests were tightly intertwined and largely shielded from electoral accountability. This configuration periodically found it expedient to invoke external threats, Morocco chief among them, to strengthen internal cohesion and deflect 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 the system in a generation. The protests were overwhelmingly 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. Yet the state’s response to the legitimacy crisis revealed by Hirak included, alongside real institutional adjustments, a perceptible intensification of external threat rhetoric, in which accusations of foreign interference—often Moroccan and, after 2020, Israeli—occupied a prominent place in official and state-aligned media discourse. This pattern recurred 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 claim that Algerian governance is entirely 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 domestic development priorities independent of the Moroccan rivalry. Yet the recurring coincidence between internal political tension and intensified anti-Moroccan mobilization in official discourse is difficult to dismiss as coincidental, and constitutes one of the clearest mechanisms by which external rivalry has become embedded in public policy.
The economic toll of prolonged confrontation
Nowhere is the cost 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, aspired to a common market, coordinated infrastructure, and eventually a customs union modeled loosely on the European integration project. Instead, it has remained largely moribund for more than three decades, its ministerial councils largely inactive and its founding ambitions unfulfilled. Intra-Maghreb trade remains among the lowest regional integration levels 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 trade intensity typically observed between neighboring economies with complementary endowments.
The closure of the land border since 1994—originally imposed by Morocco following a Marrakech terrorist attack that Rabat partly attributed to Algerian security lapses, and never reopened despite intermittent 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 decades-old functional energy interdependence—one of the few to survive previous diplomatic freezes—in favor of parallel, mutually exclusive energy corridors. Algeria rerouted its gas exports via the Medgaz pipeline directly to Spain, while Morocco promoted the ambitious Atlantic Gas Pipeline project linking Nigerian gas reserves to European markets via a route explicitly avoiding Algerian territory and implicitly the Algerian transit lever.
By comparison, regional blocs with far less obvious 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, over comparable periods, achieved markedly higher levels of intra-regional trade and coordinated infrastructure investment. This underscores that Maghreb stagnation stems from a political constraint rather than structural or geographic inevitability. 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 exploiting real comparative advantages—Algerian hydrocarbons and Moroccan manufacturing and agricultural exports; coordinated renewable energy infrastructure leveraging shared Saharan solar potential; deeper regional capital markets; an enlarged tourism market; and a collectively strengthened 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, 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 the rivalry is nowhere more visible than 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 collapse of state authority in northern Mali after 2012 and the subsequent proliferation of jihadist and separatist armed groups. Algerian authorities consistently frame these expenditures as defensive and regionally oriented rather than specifically directed at Morocco. Morocco, for its part, has undertaken parallel and substantial military modernization, diversifying acquisitions among U.S., European, and—since the 2020 normalization—Israeli suppliers, acquiring 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 Algerian case, Atlantic and Saharan in the Moroccan—the modernization efforts of each are almost invariably interpreted by the other through the lens of bilateral competition, producing a classic security dilemma in which defensive acquisitions are perceived as threatening, driving 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 quotidian management of the relationship has become militarized, despite the absence of open conflict since 1963.
Competing models of regional leadership
Beyond the security and diplomatic dimensions, Morocco and Algeria have in recent years articulated genuinely distinct development and geopolitical visions for their own 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 aimed at providing Sahelian states—many now governed by juntas at odds with Paris and, in several cases, ECOWAS—with Atlantic access via Moroccan Saharan ports, positioning 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 sovereigntist 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 reality, however, each initiative is systematically read by the other capital as an attempt at regional encirclement, and the diplomatic energy that might otherwise support complementary regional development is instead devoted to mutual containment.
Public diplomacy and the battle for global narratives
The rivalry plays out not only through formal diplomacy, defense acquisitions, and infrastructure decisions, but also through 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 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 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 the liberation 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 periodically spilled over into unrelated state friction. Diplomatic tensions between Algeria and France over historical memory, migration, and, most recently, the 2024 detention of Algerian-French dissidents occurred in a context where Algiers explicitly linked French political choices to what it perceives as Paris’s pro-Rabat tilt within French political and media establishments, illustrating how the Moroccan rivalry has come to color even relationships, such as the one with France, that possess their own long-standing and independent bilateral logic. The result is a regional information environment in which even developments that appear a priori unrelated—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, confirming the central finding of this analysis: that while Morocco does not explain all of Algerian policy, few aspects of Algerian regional policy remain entirely untouched by the rivalry.
Has opposing Morocco become Algeria’s sole long-term strategy? A balanced assessment
After tracing the rivalry across multiple interwoven domains, a more precise verdict on the initial question becomes possible. The claim that opposing Morocco constitutes the only long-term national program of Algeria does not withstand scrutiny. Algeria faces a genuinely broad portfolio of national priorities largely independent of Rabat: maintaining political stability amid an unfinished post-Hirak transition; reducing dependence on a hydrocarbon-rent economy despite years of diversification rhetoric; addressing acute youth employment and demographic pressures in a country where the 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 is unrelated to the Moroccan file.
Yet the nuanced counter-thesis is equally well supported: the rivalry with Morocco has become one of the most enduring, consistently invoked, and determinative principles of Algeria’s regional strategy, disproportionate 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, 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 as one interest among others, on a level playing field in the competition for political attention, 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 substantial and increasingly well documented. North Africa remains one of the least economically integrated regions in the world, 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 powered 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 the dispute could in principle coexist with functional economic relations, as it largely did during the 1988–1994 period and, more partially, 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 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 kind 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 insulated 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 sovereignty position.
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 and status-quo factions within its security establishment; the pace and solidity of Morocco’s continued diplomatic consolidation around its Western Sahara sovereignty claim, which reduces the incentive for Rabat to offer concessions that might be perceived 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.
Conclusion: beyond zero-sum, toward shared geography
The Algeria-Morocco relationship represents one of the most defining—and most costly—features of contemporary North African geopolitics. It would be inaccurate and analytically reductive to conclude that opposing Morocco constitutes the sole long-term political and economic program of Algeria: the Algerian state’s actions respond to a genuinely broad range of domestic and regional priorities independent of Rabat, from Sahelian security to hydrocarbon diversification to demographic management. It would be equally erroneous, however, 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 of 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 stands as the most compelling evidence that a 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 greater responsibility for the impasse—a question that lies beyond the scope of dispassionate analysis and to which each side’s domestic discourse responds predictably and uniformly by assigning blame to the other—but to recognize the structural pattern revealed by the facts: a rivalry born of a colonial border dispute, hardened by the Sand War and then by 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 scale of this logic, and the considerable margin of maneuver each government possesses to loosen its grip, constitutes 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.
