Most of the tens of thousands of migrants who swam into the Spanish exclave of Ceuta on Thursday have returned to Morocco, escorted to the border by Spanish soldiers and police.

At least 67 people died during the migrant surge, with their bodies pulled from the sea.

Fratelli d'Italia, the hard-right party of Italian Prime Minister Giorgia Meloni, posted a caption stating, "This is the Sanchez model the Italian left wing likes so much".

Italian Prime Minister Giorgia Meloni announced the suspension of Italy's Schengen agreement with Spain, citing a security threat. As a result, travellers from Spain to Italy face random document checks by police for a few weeks.

Almost two dozen European Union (EU) heads of state signed Meloni's call for an urgent meeting of interior ministers to eliminate policies acting as "pull factors" to Europe.

Spain allows hundreds of thousands of undocumented migrants to apply for residence and work permits to regularize their status.

Spanish Prime Minister Pedro Sánchez criticized some in the EU for "attacking" Spain during the crisis instead of showing support. He also stated that a ruling by Spain's Supreme Court, which prevents immediate pushbacks of those entering by sea, was misrepresented by smugglers.

US President Donald Trump described the migrant crossings into Spain as a "catastrophe" and an "invasion".

Morocco blamed "criminal organisations" for the influx. However, Sánchez described Rabat as a "good ally" and did not blame Morocco.

In response, Spain is extending the border fence of Ceuta out to sea and attaching long lines of orange buoys to the jetty to deter future swimmers. Europe sheltered many refugees in 2015.