Spain vs Morocco: Rearmament, Ceuta and the Strait of Gibraltar
2026-10-04 · by Jordi Fuster
Spain and Morocco are separated by 14.2 km of water at the narrowest point of the Strait of Gibraltar, and joined by almost everything else: trade, electricity cables, fishing fleets, migration routes, the unresolved status of Western Sahara and, through the enclaves of Ceuta and Melilla, a land border on the African continent. The WorldRelat War Simulator gives Spain a 65.0% edge over Morocco's 35.0%. The number is easy to produce and the relationship is hard to summarise, which is exactly why it is worth looking at both. This article explains what the simulator measures, how Spain's rapid rearmament and Morocco's steady build-up compare, why the numbers can mislead, and what the flashpoints of the past twenty-five years suggest about how this rivalry actually works.
What the simulator compares
The five indicators in the Spain versus Morocco simulation favour Spain on four counts out of five:
| Indicator | Spain | Morocco |
|---|---|---|
| Defence spending (WorldRelat data) | $24.6bn | $5.5bn |
| Active troops (estimate) | 128,000 | 195,800 |
| Reserve troops (estimate) | 319,000 | 150,000 |
| GDP | $1.9 trillion | $182.4 billion |
| Population | 46.8 million | 36.9 million |
| International influence (0 to 10) | 2.3 | 0.7 |
Morocco has more active troops than Spain, and a Spanish economy ten times larger. The 65 to 35 split is the product of those differences once each indicator has been split in proportion to its square root. In our power ranking, Spain is 12th with 76.4 points and Morocco 46th with 65.7.
Two cautions about the inputs. First, our spending figures predate the latest SIPRI release. SIPRI's April 2026 report puts Spanish spending at $40.2bn for 2025, a 50% real-terms rise and 2.1% of GDP, the first time Spain has passed 2% of GDP since 1994, and Moroccan spending at $6.3bn, up 6.6%, the second-largest in Africa. Updated data would widen Spain's spending lead from about 4.5 to 1 to about 6.4 to 1. Second, you should compare spending only within one source: NATO's own measure put Spanish defence spending at 33.1 billion euros in 2025, a different figure for a different definition. Personnel numbers vary widely by source, and published figures for Morocco in particular differ by a factor of two or more, so we treat them as indicative.
Spain's rearmament, and its limits
Spain was for years the NATO member that spent the smallest share of its economy on defence; before the June 2025 summit it was at 1.28% of GDP. Prime Minister Pedro Sánchez resisted the alliance's proposed 5% target, which combines 3.5% for core defence and 1.5% for related security spending, and Spain secured an arrangement to commit about 2.1% of GDP instead. Sánchez argued that a 5% target would require large tax rises or pension cuts, which is his own estimate.
The hardware tells a story of steady, selective modernisation. Spain is buying 45 Eurofighters in two batches (Halcon I and II, worth 4.6 billion euros), has ruled out the F-35, and says its future combat aircraft will be the Eurofighter and the European FCAS programme. Its amphibious ship Juan Carlos I has no replacement for its Harrier jets, which retire around 2030. The army operates 239 Leopard 2E tanks plus about 80 older Leopard 2A4s, with upgrades and replacements planned. And the navy's first S-80 Plus submarine, Isaac Peral, entered service in November 2023, with the second boat delayed. The simulator's capabilities card gives Spain one carrier-class ship and a handful of military satellites, and nothing in the stealth fighter, nuclear submarine or long-range missile categories.
Morocco's quieter build-up
Morocco's defence budget for 2026 is 73 billion dirhams, up 4.8%, of which about 65% pays for personnel. The country plans to recruit 5,500 people. A bigger headline number has circulated: 157 billion dirhams. That figure is a multi-year commitment authority, not annual spending, and should not be read as a budget. Moroccan officials describe the annual defence budget as below 4% of GDP, a share that looks high against SIPRI's dollar figure and that we have not been able to reconcile.
The purchases are significant. Morocco has ordered 24 AH-64E Apache attack helicopters, and a second batch of six arrived on 7 April 2026, bringing deliveries to 12 with an option on 12 more. The United States approved the sale of 18 HIMARS rocket launchers with ATACMS missiles in April 2023, though approval is not delivery. Press accounts also credit Morocco with an order of 25 F-16 Block 70/72 fighters on top of its older F-16s, more than 230 drones of Turkish, Israeli and Chinese origin, and Abrams tanks, although most of these counts come from a single secondary source and we treat them as reported rather than confirmed. Reports of Spyder air defence systems detected by satellite imagery in May 2026 were widely discussed in the Spanish press, but it is the outlet reporting them that frames them as a worry for Spain. The simulator's capabilities card gives Morocco two out of three on armed drones and none on carriers, nuclear submarines, stealth fighters or satellites.
The balance, in short: Spain has the larger economy and the larger budget; Morocco has more active soldiers, a growing defence budget and a procurement strategy that draws on the United States, Israel, Turkey and China at the same time. Neither is trying to match the other symmetrically.
Geography: 14 km, 763 km
The simulator's reach card makes a point that looks like a contradiction. It measures the straight-line distance between the closest capitals, Madrid and Rabat, at 763 km, notes a land border and rates Spain as having regional reach and Morocco territorial defence only. But on the ground the geography that matters is smaller. The Strait of Gibraltar is 14.2 km across at its narrowest. Ceuta, a Spanish city of about 84,000 people on 18.5 km², shares a 6.4 km land border with Morocco. Melilla, with about 87,000 residents on 12.3 km², sits further east. Both are in the European Union, but outside the Schengen area and the EU customs territory. The Canary Islands lie about 59 miles off the Moroccan coast, and Morocco's 2020 maritime laws, which set a 12 nautical mile territorial sea, a 200 mile exclusive economic zone and a 350 mile continental shelf, overlap with Spanish claims around the islands, including near the Tropic Seamount. Delimitation has stalled and is tied to the status of Western Sahara.
One legal point shapes the strategic picture: the North Atlantic Treaty's collective defence clause applies to Europe, North America, Turkey and islands north of the Tropic of Cancer, a definition that does not include Ceuta and Melilla. NATO's 2022 strategic concept says each ally's territory is defined by its constitution but does not name the enclaves, and commentators at Euronews have called the question legally unresolved. That ambiguity is deliberate, and it is one reason why both governments handle the issue carefully.
Perejil, 2002: a crisis settled by mediation
The closest this rivalry has come to a military confrontation was in July 2002, over Perejil, a tiny uninhabited islet just off the Moroccan coast. Moroccan soldiers landed; Spanish commandos took six of them prisoner and Spain put 75 troops on the island. US Secretary of State Colin Powell mediated with dozens of phone calls, and both sides agreed to restore the situation to what it had been before. Spain withdrew its troops on 20 July. It is a useful reference because it shows both the speed of escalation, days from a landing to an assault, and the importance of third-party mediation in a conflict between a NATO member and a non-member.
The July 2026 crisis at Ceuta
A more recent episode makes the present tension harder to ignore. On 30 July 2026, tens of thousands of people crossed into Ceuta from Morocco. Reports on the scale differ: initial Spanish counts spoke of about 50,000 people, later sources, including Wikipedia and a House of Commons Library briefing, put it at about 72,000. Death toll estimates vary even more, from 34 and 57 in early reporting to claims of 100 or more later, and the figures are still being revised. Around 70,000 people were returned to Morocco in what Spanish authorities described as voluntary returns, while a few thousand remained in early August, including 862 unaccompanied minors.
The politics were as contested as the numbers. Morocco denied having organised the movement, blaming misinformation and smugglers, and Carnegie reports that experts doubt state orchestration. Sánchez described the events as a violation of Spain's territorial integrity. The European fallout was large: Italy suspended its Schengen arrangements with Spain and Spain reciprocated on 8 August, France reimposed border checks, and 22 EU leaders signed a letter criticising the situation. It was the second crisis of this type, after the 2021 episode in which about 8,000 people crossed after Spain admitted the Sahrawi leader Brahim Ghali for medical treatment.
Notably, these were not military events, and none of the hardware in the previous sections would have mattered. They were instruments of pressure: migration, border control and diplomatic recognition. The Western Sahara question sits behind several of them. In March 2022 Sánchez wrote to King Mohammed VI describing Morocco's autonomy plan as the most serious, realistic and credible basis for a solution, a shift in Spanish policy that eased relations for a time.
Staying power: where Morocco has the edge
The simulator's staying-power card reverses the headline. It gives Morocco an index of 54 against 49 for Spain, a narrow edge that the card flags as a contrast with the 65% win probability. Morocco's advantages come from the economy: foreign reserves covering 5.9 months of imports against 2.0 months for Spain, and annual growth of 4.6% against 2.8%. On food, Morocco is rated strong (food is 11% of imports) and Spain moderate (12%). On energy both are weak: Spain imports about 77% of its energy and Morocco about 94%. None of this means Morocco would win a long conflict, but it shows how little a headline percentage reveals about resilience.
Interdependence is the real story
If the military balance is one dimension, the economic and civil ties are a larger one. Trade between the two countries reached 22.757 billion euros in 2025, and Spain is Morocco's leading trading partner for both exports and imports; in the first half of 2026 Spanish exports to Morocco were 6.42 billion euros and imports 5.80 billion euros. Two 400 kV electricity links with a combined capacity of 1,400 MW connect the grids, with a third link of 700 MW planned. Since 2022 the Maghreb-Europe gas pipeline has been set up to carry Spanish gas to Morocco in reverse flow. In October 2024 the EU's Court of Justice annulled the EU-Morocco fisheries agreement because it covered Western Sahara waters, which Andalusian fishing interests warned would do severe damage to their fleet.
Migration cooperation is the most visible link, and the most fragile. Spanish Interior Ministry data show irregular arrivals falling from 64,019 in 2024 to 36,775 in 2025, with arrivals in the Canary Islands falling 62%, from 46,850 to about 17,800. That is attributed to cooperation with Morocco and Mauritania, though the claim comes largely from Moroccan media, and the July 2026 events cut against it. Politically, the two governments met in Madrid on 4 December 2025 for the 13th high-level meeting and signed agreements on justice, tax, agriculture, fisheries, culture and social protection. And they are co-hosts, with Portugal, of the 2030 World Cup, whose final venue is not yet decided.
What to take from the 65%
The number tells you that Spain is a richer, larger-spending state, and that Morocco has more soldiers and a fast-growing military budget. It does not tell you that war is likely, and the evidence of the last quarter century suggests it is not what drives the relationship. The risk in the Strait is not an invasion; it is a crisis that escalates through migration, sovereignty claims over small territories, or an incident at sea or on an islet, in a setting where NATO's guarantee is uncertain and the European Union is watching. You can open the extra cards on the simulation page, compare other pairs, or read more on the Morocco and Spain relationship page.
Sources
- SIPRI, press release on military expenditure and fact sheet, April 2026.
- Al Jazeera, Spain rejects NATO's 5% defence spending hike, June 2025; La Moncloa, Spain-NATO agreement, June 2025.
- Breaking Defense, Spain rules out F-35 order, August 2025.
- Hespress, Morocco lifts defense budget to 73 billion dirhams for 2026, November 2025, and draft budget report, October 2025.
- Army Recognition, Morocco's Apache fleet, April 2026; The Defense Post, US approves HIMARS sale to Morocco, April 2023; Atalayar, Moroccan armed forces overhaul, December 2025.
- CNN, Perejil crisis report, 20 July 2002; Euronews, Does NATO's collective defence apply to Ceuta and Melilla?, July 2022; Euronews, Spain and Morocco near end of diplomatic row, March 2022.
- Chatham House, Ceuta border crisis heaps pressure on Spain's government, July 2026; Carnegie, Ceuta, Morocco and Europe: migration fallout, August 2026; Forbes, Most migrants who crossed into Ceuta have returned, 31 July 2026; House of Commons Library, research briefing CBP-10987, 2026.
- Morocco World News, Spain-Morocco trade reaches over 22.757 billion euros in 2025, August 2026; irregular arrivals to Spain drop 42.6% in 2025, January 2026; EU court ruling and the Andalusian fleet, October 2024.
Simulator figures (percentages, distances, staying-power ratings and capability tiers) are from the WorldRelat War Simulator as of 4 October 2026 and are context, not forecasts. Figures for the July 2026 Ceuta crisis differ between sources and are still being revised.