At least 800 sub-Saharan African migrants have tried to cross into Spain's North African enclave of Ceuta from Morocco by storming a border fence, though most were turned back, the Spanish and Moroccan governments say.
Dozens of migrants made it to the top of the 6m barbed wire fence before being lifted down by cranes, footage from local TV station Faro TV showed.
Spain said about 1100 migrants attempted the crossing.
Only two were allowed into Ceuta to be taken to hospital while the rest were returned to Morocco, the Spanish Government said.
Five Spanish police and 50 from Morocco were injured, the Government added, after migrants used rocks and metal bars to try and break through gates to access the fence and clashed with authorities.