A warning was given

They were warned. The warning came from Spain’s own spies at the Centro Nacional de Inteligencia. It was sent the day before the border was breached. Declassified files, released on Wednesday, confirm that both the Spanish government in Madrid and its counterparts in Rabat received the alert. The intelligence was specific, pointing to calls circulating on social media for a coordinated mass crossing into the Spanish city of Ceuta. It was not a vague threat but a detailed picture of an imminent and organised event designed to test the border defences. The spies did their job. Their report was clear.

The next day, it happened. Just as the intelligence had predicted. Tens of thousands of people gathered at the frontier. They poured across the line separating Morocco from the Spanish exclave, a sudden human tide overwhelming the few guards on duty. The local authorities were completely unprepared for the scale of the influx, with people moving through the city in scenes of disarray. Order collapsed. The city buckled. This was not a surprise event, but the direct and foreseeable outcome of a warning that went unheeded by officials in two capitals.

This was not an intelligence failure. It was a failure of politics. The declassified reports, made public on 9 September, show that Spanish intelligence provided a clear, timely and actionable warning about the planned surge. It was a textbook example of good espionage providing a government with the information needed to prevent a crisis or at least to manage its effects with preparation. Madrid knew. And according to the same files, Rabat knew too. The Moroccan authorities, who receive significant EU funding to police their side of the border, were also alerted by Spanish services. The critical question is not why the spies failed to see the surge coming. They saw it perfectly. The real question is why two governments, upon receiving identical, credible intelligence about an impending border crisis, apparently chose to do nothing at all. Their inaction speaks volumes.

A city on the edge

Ceuta is not like other Spanish cities. It is Europe in Africa. The city is a small peninsula of just nineteen square kilometres, a piece of the Iberian state bolted onto the Moroccan coast and jutting into the Strait of Gibraltar. This geography gives it a 6.4 kilometre land border with Morocco, a line that is also the external frontier of the European Union itself. For centuries, this anomaly has been a source of immense strategic value and, more recently, of intractable political tension. The city feels it. Its residents live with it.

Spain has held Ceuta for a very long time. It has been a Spanish possession since 1668, its status formalised in treaties long before the modern state of Morocco even existed. Rabat does not accept this history. Since gaining its independence from France and Spain in 1956, Morocco has consistently laid claim to both Ceuta and its sister city Melilla, treating them as occupied territories awaiting liberation. This permanent, low level dispute over sovereignty is the background radiation to every interaction between Madrid and Rabat. It never goes away.

The city’s location makes it a powerful magnet. For people across sub Saharan Africa and Morocco itself, Ceuta represents a chance to enter the European Union without risking the dangerous sea journey across the Mediterranean or the Atlantic. It is a terrestrial gateway, a tangible destination that has for decades drawn thousands to its perimeter fence in the hope of a better life. This makes the border more than a simple line on a map or a physical barrier of wire and sensors. The border is a weapon. The six metre high parallel fences, the rolls of concertina wire, the watchtowers and the thermal cameras are all designed to stop individuals. They cannot stop a state. Morocco’s control over who approaches that fence gives it a powerful lever of influence over its European neighbour, a tool it can use to create a crisis for Madrid at almost any time of its choosing.

Rabat’s familiar playbook

This is a familiar pattern of behaviour. It is a deliberate and well rehearsed state policy. Morocco has used migration as a political weapon against Spain before, and the events of May 2021 provide the clearest and most dramatic precedent for what just happened. That crisis was a moment of profound shock for Madrid. Then, as now, the stage was Ceuta. Over the course of two days, approximately 10,000 people, a significant number of them children and teenagers, were able to simply walk or swim around the city’s border fences from the adjacent Moroccan town of Fnideq. Moroccan border guards, normally an intimidating and effective presence, did nothing to stop them. They simply stood aside.

The reason for Rabat’s sudden passivity was no secret. The 2021 surge was direct retaliation for a Spanish decision to allow Brahim Ghali, the leader of the Polisario Front which seeks independence for Western Sahara, to receive medical treatment for Covid in a Spanish hospital. The message could not have been clearer. By relaxing its border enforcement, Morocco demonstrated its ability to generate an instant humanitarian and political crisis for the Spanish government, flooding a city of 85,000 residents with thousands of new arrivals in a matter of hours. The playbook is simple. It is also brutally effective. Rabat creates a problem that only it can solve, forcing Madrid into a difficult choice between managing a chaotic situation on its territory or making a concession on a point of foreign policy vital to Moroccan interests.

The latest surge fits this model perfectly. Nothing happens on that border without Morocco’s knowledge. The declassified files confirm that Rabat’s intelligence services, just like their Spanish counterparts, were alerted to the plans circulating on social media a full day before the crossing began. They were warned. They knew what was coming. Their inaction, therefore, was a conscious political choice, a decision to once again allow thousands of vulnerable people to become instruments of statecraft in its long running diplomatic contest with Spain.

The Western Sahara question

The issue is Western Sahara. It is a vast and sparsely populated stretch of desert on the Atlantic coast, a former Spanish colony whose final status has remained unresolved for almost half a century, poisoning relations between Morocco and its neighbours. Morocco claims it as its own. Rabat annexed most of the territory in 1975 following the Green March, a mass demonstration which saw 350,000 Moroccan civilians cross into the area. Spain did nothing. As the departing colonial power, it abandoned its responsibility for a decolonisation process, leaving the indigenous Sahrawi people, represented by the Polisario Front, to wage a long independence struggle backed by Morocco's regional rival, Algeria.

For decades after, Spain's official position was one of careful neutrality. Madrid publicly supported a United Nations settlement that would include a referendum on self determination for the Sahrawi people. This policy was consistent. It was also a constant source of frustration for Rabat, which saw Spain’s stance as an obstacle to cementing its control over the territory. Morocco wanted more. It wanted explicit support.

That changed in March 2022. In a major reversal of foreign policy, the Spanish Prime Minister, Pedro Sánchez, sent a letter to King Mohammed VI endorsing Rabat’s plan for the region. This plan offers Western Sahara an autonomous status, but one that operates firmly within the framework of Moroccan sovereignty, falling far short of the full independence demanded by the Polisario Front. The concession worked. For a time. It ended the diplomatic crisis which had erupted the previous year over the hospitalisation of the Polisario leader, and it secured renewed Moroccan cooperation on migration.

But the price was high. The move infuriated Algeria, a crucial supplier of natural gas to Spain, and caused a deep rift within Sánchez's own coalition government in Madrid. This history is not abstract. It shows that for Rabat, border control is not a simple security matter. It is a powerful lever, to be pulled whenever it feels its core strategic interest in Western Sahara is not being adequately respected by Spain.

Madrid's difficult calculation

The question for Madrid is unavoidable. The intelligence was clear. The warning was given a day in advance to both the Spanish government and its Moroccan counterparts. Why, then, was nothing done? The answer does not lie in incompetence. It lies in a cold and difficult calculation.

Madrid faced a choice. A terrible one. Acting on the intelligence would have meant a very public and forceful reinforcement of the Ceuta border, an obvious display of Spanish police and military assets in anticipation of a crisis that Rabat was expected to prevent. This would have been seen as a direct challenge. It would have signalled a complete lack of faith in Moroccan cooperation, shattering the fragile diplomatic peace which had held since 2022 and risking a far deeper confrontation. This was a risk. The alternative was to do nothing. To wait. The government waited. It knowingly allowed a manageable intelligence problem to become a chaotic public spectacle, absorbing the inevitable political damage at home.

This inaction points to a grim reality for Spanish foreign policy. Morocco is not a partner of equals. Rabat holds the cards. The kingdom’s cooperation is essential for Spanish, and indeed European, security on fronts far wider than the Ceuta fence, including counter terrorism and organised crime. A permanent breakdown in relations is a strategic nightmare that Spanish prime ministers have consistently sought to avoid at almost any cost. This suggests a grim strategic choice was made inside the Moncloa Palace, one where the certainty of a domestic political firestorm and a logistical crisis in Ceuta was deemed a lower price to pay than the risk of a complete and potentially irreversible diplomatic rupture with a neighbour critical to Spain’s security.

So Spain absorbed the blow. It accepted the humiliation. The government chose the path that would lead to damaging headlines and furious opposition attacks, judging it to be the containable option. For Madrid, the logic appears to be that a localised migration crisis, however severe, is a temporary problem that can be managed with resources and time. A diplomatic war with Rabat is not. It is a fundamental threat to Spanish national interest, with consequences that would ripple out for years. The government chose a visible domestic failure over a silent strategic disaster.

The political fallout

The fallout was immediate. This revelation creates profound embarrassment for the government in Madrid, confirming its paralysis in the face of Moroccan pressure. It is political poison. Political opponents now possess concrete proof for an argument they have been making for years, that the government is incapable of securing the country’s own borders. They will use it. Expect furious debates in the Cortes Generales and demands for the interior minister to explain why a specific intelligence warning was ignored. The government looks weak.

The ripples spread beyond Madrid. Awkward questions are now being asked in Brussels, where officials oversee the substantial European Union funds allocated to Morocco specifically for border management and migration control. This report suggests Rabat treats its commitments as a diplomatic lever to be pulled at will, and that an EU member state government was aware of this and chose inaction over confrontation. The entire basis of the EU’s financial partnership with Morocco on migration now looks dangerously fragile, built not on reliable security cooperation but on the shifting political needs of the Moroccan kingdom. Confidence has been shaken.

Three things bear watching now. The first is the Spanish government’s official response, which will require a delicate political performance to avoid admitting either incompetence or total submission to Rabat’s strategic games. The second will be Morocco’s reaction. A telling silence from Rabat would only amplify its perceived power in this unequal relationship. Finally, all eyes will be on the European Commission. The pressure for a formal review of the financial aid package to Morocco will be immense, a move that could itself trigger a new and even more severe diplomatic crisis. The game is not over. It has just been exposed.

Sources. BBC News World: Spanish intelligence warned of Ceuta mass crossing plans before surge. Sky News World: Spanish spies warned of mass migrant crossing into Ceuta the day before.

Analysis. Drafted with AI assistance from the sources listed above and reviewed by an editor before publication. Jnews links to the organisations it writes about.