Would a change of government in Madrid have been enough to reshape relations between Spain and Morocco? After Spain’s general election on 23 July 2023, the answer depended less on campaign statements than on the parties’ ability to form a government and maintain bilateral commitments.
An election without an immediate change of government
The People’s Party (PP), led by Alberto Núñez Feijóo, came first with 137 seats in the Congress of Deputies. Pedro Sánchez’s Spanish Socialist Workers’ Party (PSOE) won 121. Vox, a radical right-wing party, secured 33. No bloc had the 176 seats needed for an outright majority.
This distinction changes how the election should be read: the PP’s victory in terms of seats did not automatically make Feijóo the next head of government. He failed to win parliament’s confidence. On 16 November 2023, Pedro Sánchez was invested for a new term. The PP and Vox’s statements on Morocco therefore remained those of parties campaigning or in opposition, rather than decisions by a government led by Feijóo.
The election came amid a tense period in Spanish politics, following regional and municipal elections in May 2023. Morocco featured in the debate through three closely linked issues: Western Sahara, the Spanish cities of Ceuta and Melilla, and the management of migration at the borders.
Bilateral interests that transcend party politics
Madrid and Rabat had revived their relationship in March-April 2022, after a diplomatic crisis lasting about a year. Pedro Sánchez’s government had described Morocco’s autonomy plan for Western Sahara as the « most serious, realistic and credible » basis for resolving the dispute. The formula marked a change in Spain’s position, without settling the territory’s international status.
Co-operation was subsequently consolidated at the Spain-Morocco high-level meeting held in Rabat on 2 February 2023. The two governments reaffirmed their intention to continue their rapprochement. The framework covers economic exchanges, security co-operation and migration issues. For Rabat, Western Sahara remains a central sovereignty issue. For Madrid, stable relations with its southern neighbour also serve commercial and security interests.
In its programme, the PP pledged to defend the territorial integrity of Ceuta and Melilla more firmly. The two cities are under Spanish sovereignty and lie on the North African coast. Feijóo had, however, come out in favour of stable relations with Morocco. The gap between this tougher tone and the continuity of bilateral interests suggested a possible change in approach, not necessarily a rupture.
Vox took a markedly harder line. Santiago Abascal’s party wanted to challenge co-operation agreements, tighten migration policy and review certain provisions on naturalisation. Its leaders also accused Rabat of putting pressure on Spain. These proposals should not be confused with measures that were adopted: Vox was not in government, and no policy change could follow from its statements alone.
Borders, migration and domestic debate
Ceuta and Melilla give the relationship a tangible dimension for people on both sides of the strait. Border crossings affect Spanish and Moroccan authorities, but also cross-border workers, families, traders and people on the move. A political hardening can therefore affect everyday exchanges, even without a formal diplomatic crisis.
The mass crossings into Ceuta in May 2021, followed by events in Melilla in June 2022, heightened the prominence of migration in Spain’s public debate. They also underscored the sensitivity of border controls and the risks faced by people attempting to cross. Political interpretations differ over responsibility and causes; it is therefore important to distinguish established facts from accusations made by parties.
For Moroccans living in Spain and their families, rhetoric on immigration or nationality can fuel concern, even when it does not lead to reform. Businesses and economic stakeholders, by contrast, have an interest in predictable exchanges. The relationship is therefore not limited to heads of government or border tensions: it is also rooted in lasting social and commercial ties.
A relationship to watch beyond the campaign
The July 2023 election did not bring about a change of government. It therefore did not, on its own, lead to a revision of Spain’s position on Western Sahara or of its co-operation mechanisms with Morocco. The continuation of Sánchez’s government and the bilateral meeting in February were firmer guideposts than the scenarios put forward during the campaign.
At the regional level, the issue also concerns the balance of power in the Maghreb. Spain’s position on Western Sahara is being watched in Rabat and in Algiers, where support for the Polisario Front is central to foreign policy. A change of course in Madrid could therefore have gone beyond the bilateral relationship and affected ties with several partners in the region.
What happened next depended first on the formation of the Spanish government, and then on its actions: whether it maintained or revised its 2022 commitments, how border exchanges operated, and how dialogue on migration issues developed. The election result brought these issues into sharper focus in the political debate. It did not, however, determine their future.



