The migrant issue is going to be a major factor for the Spanish government at the polls, analysts say.

“Ceuta had a major impact in terms of the politicisation of migration and, in general, that leads to a better performance by the Right,” said Pablo Simón, a political scientist at Carlos III University in Madrid. “In particular, the migrant crisis has benefited Vox. They have enjoyed a big rise in popularity.”

It will be “impossible” for the People’s Party to achieve a majority, meaning that they will have to ally with Vox, said Mr Simón. “It will be the first time since the Franco era that we have a national government with a far-Right element.”

Pol Morillas, a political scientist and the director of the Barcelona Centre for International Affairs, said: “The truth is, the Spanish economy, which is performing well, requires migrants. The Right is against migrants from North Africa and sub-Saharan Africa, but much more sympathetic to Latin American migrants. There’s a double standard there.”

It is not just the Ceuta debacle that is harming Mr Sánchez’s prospects of re-election. He has also been damaged by allegations of corruption within his inner circle, and a recent train crash south of Madrid that killed at least 69 people.

But he has snatched victory from the jaws of defeat in the past. And as a centre-Left leader, he may take comfort from the Democrats’ strong gains in the US midterm elections and the surprise election victory of Luiz Inácio Lula da Silva in Brazil.

For Ceuta, the impact of the migrant crisis remains profound. “We feel that Morocco stole our lives,” said Ms Chandiramani, who comes from a small South Asian Hindu community that has called Ceuta home for centuries, alongside Christians, Muslims and Jewish people.

“They took away our liberty, our security and our rights. We feel unsafe. And uncertain about our future.”