Sánchez begins by paying tribute to the people of Ceuta, “who are enduring difficult times” as a result of the crisis.

He also reaffirms Spain’s sovereignty over Ceuta and Melilla.

But says what is happening in Ceuta is “far more complex and multifaceted,” with “a convergence of numerous actors and interests” with no simple explanation for those who “prefer to live in a world of slogans.”

He goes through the facts of the crisis, including a reconstruction of the weeks leading to the border incursion and how the number of irregular crossings changed in those weeks

He says that a series of viral social media posts encouraging people to cross the border and misleadingly citing a recent Supreme Court return started appearing online on 30 July, leading to a surge at the border.

He says that with migrants crossing the border at the Tarajal breakwater, Spanish border agents could not intervene without risking a much higher number of drownings and victims. Some 141 people are believed to have died during the crisis.

Why is Ceuta a migration flashpoint and how were so many people able to cross from Morocco?Read more

But since then Spain succeeded in sending the vast majority of irregular migrants back to Morocco – which he hails as “one of the fastest return processes ever carried out in recent European history” – and installed a number of additional border measures to prevent further crossings, he says.

He admits the situation in Ceuta today continues to pose a humanitarian and management challenge, with many migrants still in the city – but that state institutions stepped up to the occasion.

He says Spain is responding to the crisis in line with international law and procedures that it would expect others to apply to its own citizens elsewhere.

But his frustration is palpable: throughout the statement, he criticises some reactions from political rivals and some media reporting on the crisis.

He also takes a shot at some other European countries for not showing their full solidarity with Spain. He does not name any country in particular, but in a pointed passage clearly aimed at Italy and Denmark – the two countries that led the public criticism of Spain – says the principle of solidarity should apply to Ceuta as much as it applies to Greenland and Lampedusa.