Spanish and Moroccan authorities desperately fought to restore order as the migrants, most from sub-Saharan Africa, scaled the border barrier and brawled with police.
The migrants used rocks and metal bars as they battled with police officers from Spain and Morocco, who joined forces to defend the border.
Sub-Saharan African migrants forced their way over a barbed-wire fence into Spain’s enclave of Ceuta
Moroccan authorities said 10 of their security personnel had been serious wounded during the fighting.
Dozens of migrants made it to the top of the six-metre barbed wire fence early on Sunday before being lifted down by cranes, footage from local TV station Faro TV showed.
The Spanish government later insisted all the assailants had been turned back except two, who were allowed into Ceuta for medical treatment.
More than 1,100 migrants were involved in the attempt
Police said almost all the migrants were turned back to Morocco
From now on those making such attempts will be presented before the competent judicial authorities who will decree their expulsion from the kingdom
In a furious statement the country’s interior ministry raged: “From now on those making such attempts will be presented before the competent judicial authorities who will decree their expulsion from the kingdom (of Morocco) or heavier penalties, according the gravity of the act.”
Spain’s two enclaves in Morocco, Ceuta and Melilla, are often used as entry points into Europe for African migrants, who either climb over their border fences or attempt a dangerous swim along the coastline.
Some also try to cross from Morocco into mainland southern Spain by boat, despite tighter controls in recent years by the two countries which has diminished the number of those attempting this route.
In early December more than 400 sub-Saharan African migrants managed to force their way over the Ceuta border fence.
Four African migrants drowned and 34 were rescued on Wednesday off the coast of Morocco when their boat sank, though it was unclear whether they were heading to Spain or to one of the two Spanish North African enclaves.
Libya has become a more common departure point for African migrants, most from sub-Saharan countries, who attempt the crossing to Italy.
An estimated 4,663 migrants died in the Mediterranean last year, while a record number of migrants – 171,299 as of Nov. 28 – reached Italy by boat from North Africa in 2016.