Algeria’s long-term rivalry with Morocco: a defining feature of Maghreb politics

Introduction

Few bilateral relationships in the modern world have been as persistently fraught or as consequential for regional stability as that 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, punctuated by border wars, diplomatic ruptures, and a cold-war-style rivalry for regional dominance that has outlasted generations of leaders on both sides of the Zouj Bghal crossing.

The central question this analysis examines is whether opposing Morocco has become, in practice, Algeria’s long-term national strategy—the organizing principle of its foreign policy, military posture, regional diplomacy, and even some aspects of domestic legitimacy. While the claim is too absolute to hold entirely, it is equally untenable to dismiss Morocco as peripheral to Algeria’s strategic calculus.

This assessment argues for a balanced view: the rivalry with Morocco has evolved into one of Algeria’s most enduring, institutionalized, and costly organizing principles in regional policy, without fully encapsulating the country’s broader strategic horizon. The analysis traces the historical roots of this antagonism, examines its structural dimensions, and weighs its domestic and international implications.

Historical roots: from colonial borders to the Sand War

The seeds of Algerian-Moroccan discord were sown long before either nation achieved independence. French colonial cartography had, over more than a century, redrawn the Saharan and pre-Saharan frontier, annexing territories such as Tindouf, Bechar, and the Figuig region—areas Rabat had historically administered or claimed. Morocco gained independence in 1956, six years before Algeria, and its nationalists initially framed the Algerian struggle for liberation as a shared Maghreb cause, providing sanctuary, arms supply routes, and diplomatic backing to the National Liberation Front (FLN) during the 1954–1962 war.

Rabat expected an independent Algeria to reciprocate with the return of territories lost to colonization. This expectation clashed with Algeria’s post-independence doctrine, championed by Ahmed Ben Bella, that colonial borders were sacrosanct and non-negotiable—a principle later enshrined continent-wide by the 1964 Cairo resolution of the Organization of African Unity on the inviolability of colonial borders.

The brief but formative Sand War of October 1963—fought over Tindouf and Figuig—ended in a ceasefire within weeks, thanks to mediation by the OAU and Ethiopian arbitration. Yet the conflict left a residue of strategic mistrust. To Algeria’s revolutionary elite, the Moroccan monarchy appeared as an expansionist neighbor aligned with conservative Western interests. For the Moroccan palace, Algeria emerged 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 mutually reinforcing narratives have endured, resurfacing in every subsequent crisis.

Academic perspectives on the rivalry

Scholarly 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 (Boukhars, 2019). Historians of French Algeria place the rivalry within a longer colonial and postcolonial genealogy, arguing that 130 years of occupation and the independence struggle shaped an Algerian political identity steeped in sovereignty and anti-interventionism—far more distrustful of external engagements, including Moroccan ones, than Morocco’s own postcolonial trajectory (Stora, 2020; 2021).

Analyses of the 2019 Hirak protests similarly emphasize domestic grievances—transparency, accountability, and institutional reform—while noting how state discourse later invoked external threats to deflect criticism. Collectively, this body of work rejects a monocausal reading in which Morocco explains all of Algeria’s foreign policy but consistently identifies the rivalry as a structuring, not incidental, feature of regional order, rooted in colonial and revolutionary experiences that produced two fundamentally different states.

The Amazigh identity dimension

Less frequently scrutinized but analytically significant is the competing claims over Amazigh (Berber) identity. Both Algeria and Morocco have substantial 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 countries have granted constitutional recognition to Tamazight (Morocco in 2011, Algeria in 2016), the political meaning attached to this identity diverges sharply.

In Algeria, the Kabyle Amazigh movement has at times advanced autonomy demands that central authorities have framed as a security issue. Algiers has occasionally accused Morocco of secretly encouraging Kabyle separatism as a destabilization tool, a charge Rabat has consistently denied. Morocco, by contrast, has woven Amazigh cultural recognition—through the 2001 creation of the Royal Institute of Amazigh Culture and the 2011 constitutional reforms—into a national narrative centered on the monarchy, treating Amazigh identity not as a threat but as part of an inclusive national story.

This contrast illustrates how a shared civilizational heritage, rooted in a pre-Arab-Islamic Amazigh substratum, has been refracted through the prism of bilateral rivalry rather than serving as a foundation for cross-border cultural cooperation.

The Western Sahara dispute as a structural driver

If the Sand War forged the psychological architecture of rivalry, the Western Sahara dispute has provided its durable institutional content. Spain’s 1975 withdrawal from its Saharan colony—precipitated by Morocco’s mobilization of 350,000 unarmed civilians in the Green March—triggered a conflict that has structured bilateral relations for half a century. Morocco annexed and has administered most of the territory since then, proposing an autonomy plan under Moroccan sovereignty as the only realistic basis for resolution.

Algeria, while formally rejecting any territorial claim on 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 at the African Union and United Nations.

Each side’s narrative is total and mutually exclusive. Algiers frames its stance as the application of UN Charter principles of self-determination and the continuity of its anti-colonial legacy. Rabat, supported by an increasing number of external observers, contends that Algeria is a de facto party to the dispute rather than a neutral sponsor of Sahrawi self-determination, citing the Polisario leadership’s location, financing, and institutional dependence on Algerian territory (Chtatou, 2021, October 22).

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 decolonization principle, neither government possesses the domestic leeway to compromise without appearing to betray a foundational commitment. Over five decades, what began as a regional territorial dispute has become a fixed coordinate around which nearly all other dimensions of the bilateral relationship, and much of Algeria’s broader foreign policy, now revolve.

Foreign policy through the Morocco lens

Algerian diplomacy since the 1970s has exhibited a recurring pattern: initiatives ostensibly pursued for their own sake—African solidarity, energy diplomacy, non-alignment, security cooperation—often serve as instruments to contain Moroccan influence. Several domains illustrate this dynamic with particular clarity.

The African Union

Algeria played a pivotal role in admitting the Sahrawi Arab Democratic Republic to the Organization of African Unity in 1984, prompting Morocco’s withdrawal from the pan-African body for 33 years. When Morocco rejoined the African Union in January 2017—replacing its “empty chair” strategy with direct diplomatic engagement—Algiers intensified its continental outreach, courting Sahelian and sub-Saharan capitals in what amounted to a renewed competition for African recognition of the 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 Saharan sovereignty claim, introduced a new axis of confrontation. Algiers, whose foreign policy identity long integrated solidarity with the Palestinian cause as an ideological principle, interpreted the move as a strategic repositioning that could bring Israeli security and intelligence presence to its western flank (Chtatou, 2026, June 22). 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 concretely shaped Algerian threat perception and defense planning.

Diplomatic rupture and escalation, 2021

In August 2021, Algeria formally severed diplomatic ties with Morocco, citing what it termed hostile acts. It closed its airspace to Moroccan civilian and military aircraft, suspended the Maghreb-Europe Gas Pipeline that had carried Algerian gas through Moroccan territory to Spain for a quarter-century, and maintained the closed land border in place since 1994. These measures, still in force, represent the most severe institutionalization of bilateral hostility since the Sand War and illustrate how a bilateral dispute has come to condition Algerian policy on infrastructure, energy, and airspace.

Reconfiguration in 2026

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 troops—further widened the diplomatic gulf between Rabat and Algiers. It positioned Morocco as what one analysis called the Arab pivot of an emerging regional order anchored to the United States. Algeria, deepening defense and energy ties with Russia and increasingly with China, found itself on the opposite side of an emerging geopolitical divide that closely—and not coincidentally—overlaps with the long-standing Algerian-Moroccan rivalry.

Domestic politics and the uses of external rivalry

A large body of political science asserts that authoritarian and hybrid regimes facing domestic legitimacy deficits often benefit from cultivating external threat narratives—a dynamic sometimes termed the 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—an opaque, unaccountable militarized establishment consolidated power. Critics and opposition voices have long described this power structure through the contested but persistent trope of the “power” or “mafia of the generals”—a governing configuration where military, security, and economic interests are tightly interwoven and largely shielded from electoral oversight.

This establishment periodically found it opportune to invoke external threats, Morocco first among them, to bolster internal cohesion and deflect 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 the system in a generation. Protests were overwhelmingly peaceful, cross-generational, 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 revealed by the Hirak included, alongside real institutional adjustments, a perceptible intensification of external threat rhetoric. Accusations of foreign interference—often attributed to Morocco and, after 2020, to Israel—occupied a prominent place in official and state-aligned media discourse. This pattern resurfaced with 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 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. Yet the recurrent coincidence between domestic 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 domestic policymaking.

The economic toll of prolonged confrontation

The cost of the enduring rivalry is most measurable in the economic sphere. The Arab Maghreb Union, founded in 1989 by Algeria, Morocco, Tunisia, Libya, and Mauritania with great fanfare, aimed for a common market, coordinated infrastructure, and eventually a customs union modeled loosely on European integration. Instead, it has remained largely moribund for more than three decades, its ministerial councils largely inactive and founding ambitions unfulfilled.

Intra-Maghreb trade remains among the lowest regional integration rates in the world. Various estimates place formal trade between Algeria and Morocco at less than three percent of each country’s total trade—a stark contrast to the intensity typically observed between neighboring economies with complementary endowments.

The closure of the land border since 1994—imposed by Morocco following a Marrakech terror attack it partly attributed to Algerian security failings 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 definitive 2021 suspension of the Maghreb-Europe Gas Pipeline ended a decades-long functional bilateral energy interdependence—one of the few to survive previous diplomatic freezes—in favor of parallel and mutually exclusive energy corridors. Algeria redirected its gas exports through 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 via a route explicitly bypassing Algerian territory and implicitly undermining Algerian leverage over regional transit (Chtatou, 2025, October 14).

By comparison, regional groupings with far less obvious economic complementarity than Algeria and Morocco—such as ASEAN, SADC, or even the more modest Gulf Cooperation Council—have achieved markedly 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 inevitability. Regional economists have long argued that a truly cooperative Maghreb could yield substantial welfare gains: integrated transport corridors linking Casablanca, Oran, Algiers, and Tunis; expanded intra-regional trade leveraging Algerian hydrocarbons and Moroccan manufacturing and agricultural exports; coordinated renewable energy infrastructure exploiting shared Saharan solar potential; deeper regional capital markets; a vastly expanded tourism market; and a collective bargaining position vastly strengthened in negotiations with 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, and 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 nowhere more visible than in defense budgets. Algeria has maintained among 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 2012 collapse of state authority in northern Mali 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 directed specifically at Morocco.

Morocco, for its part, has pursued a parallel and substantial military modernization, diversifying acquisitions among U.S., European, and—since the 2020 normalization—Israeli suppliers. It has equipped itself with 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 (Chtatou, 2026, May 6).

Even when each state’s security calculus responds to genuinely distinct threats—not Morocco-specific for Algeria’s southern and eastern borders, or Atlantic and Saharan for Morocco’s posture—modernization efforts by each side are nearly 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, and periodic reports of reinforced troop deployments and fortifications along the closed land border, illustrate how routine relationship management has become militarized in 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 visions of development and geopolitics for their own regional leadership, though these remain caught in implicit competition. Morocco has pursued a strategy centered on economic diplomacy, South-South cooperation, and Atlantic-facing infrastructure: expanding Moroccan banking, telecom, and construction investments across West and Central Africa; promoting the Nigeria-Morocco Gas Pipeline as a continental connectivity project; and more recently launching the African Atlantic States Initiative to give landlocked Sahelian states—many now governed by juntas at odds with Paris and, in several cases, ECOWAS—access to the Atlantic via Moroccan Saharan ports, positioning the Kingdom as an indispensable logistical bridge between Sahelian hinterlands 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 in internal Malian conflicts (despite the 2024 breakdown of the Algiers Accords 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 interpreted by the other capital as an attempt at regional encirclement, and diplomatic energy that could otherwise support complementary regional development is instead devoted to mutual containment.

Public diplomacy and the media battle

The rivalry extends beyond formal diplomacy, defense acquisitions, and infrastructure decisions into a sustained competition for international public opinion and media narrative. 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 cultivating 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 African 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 occasionally spilled 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 an institutional tilt toward Rabat within the French political and media establishment. The result is a regional information environment in which even developments that appear unrelated—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 central finding of this analysis: not that Morocco explains everything in Algerian policy, but that few aspects of Algerian regional policy remain entirely foreign to this rivalry.

Is opposing Morocco Algeria’s sole long-term strategy? An evaluation

Having traced the rivalry across multiple interconnected domains, a more precise 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 amid an incomplete post-Hirak transition; reducing the economy’s heavy dependence 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; ensuring food and water security amid recurrent droughts; modernizing aging infrastructure; and managing an exceptionally complex and volatile security environment along its borders with Libya, Mali, Niger, Tunisia, and Mauritania—much of which has no direct bearing on Morocco.

Yet the nuanced counter-thesis is equally well supported: the rivalry with Morocco has become one of the most enduring, consistently invoked, and decisive organizing 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 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 as one interest among others, competing on equal footing 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 considerable and increasingly well documented. North Africa remains one of the world’s least economically integrated regions despite possessing precisely the kind of complementary economic endowments—Algerian energy and capital, Moroccan industry, logistics, and market access—that elsewhere 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 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 resurgence of hostility in the 2020s.

Rivalry or renewal? Prospects for the Maghreb

The trajectory of North Africa’s regional order over 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 on both sides, 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 broader diplomatic freezes; expanded consular and interpersonal contacts for the large 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 transcend strict bilateral diplomacy: the trajectory of Algeria’s post-Hirak political transition and the internal balance between reformist factions and those attached to the security establishment’s status quo; 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 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 costliest—features of contemporary North African geopolitics. It would be inaccurate and analytically reductive to conclude that opposing Morocco represents Algeria’s sole long-term political and economic program. Algerian statecraft responds to a genuinely broad array of domestic and regional priorities independent of Rabat, from 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 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, but also the stability, prosperity, and integration of the entire Maghreb—a region whose considerable and untapped potential offers the clearest proof that prolonged rivalry, however deeply rooted in history and grievance, imposes costs no 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 scholarly analysis and to which each society’s internal discourse predictably responds in favor of the other—but to recognize the structural pattern revealed by the evidence: a rivalry born of a colonial border dispute, hardened by the Sand War and then by the still-unresolved Western Sahara question, into a self-sustaining organizing logic capable of absorbing and reconfiguring almost every adjacent domain it touches, from Amazigh cultural politics to Sahelian diplomacy to hydrocarbon infrastructure. Taking the measure of this logic, and the substantial 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 frontier.