Hundreds of migrants stormed the border separating Spain's Melilla enclave from Morocco on Friday, the first such attempted mass crossing into the territory since the two nations mended diplomatic ties in March.
Melilla and Ceuta, Spain's other tiny North African enclave, have the European Union's only land borders with Africa, making them a magnet for migrants.
A group of over 400 migrants stormed the border fence at 8:40 am Friday and a "significant number" managed to get in, the Spanish government's local delegation said in a statement.
The migrants, from sub-Saharan Africa, were "perfectly organised and violent" it added.
Morocco deployed a "large" amount of forces to try to repel the assault on the border, who "cooperated actively" with Spain's security forces. the statement added.
In March this year, Spain ended a year-long diplomatic crisis by backing Morocco's autonomy plan for Western Sahara, going back on its decades-long stance of neutrality.
Spanish Prime Minister Pedro Sanchez then visited Rabat, and the two governments hailed a "new stage" in relations.
The row began when Madrid allowed Brahim Ghali, leader of Western Sahrara's pro-independence Polisario Front, to be treated for Covid-19 in a Spanish hospital in April 2021.
A month later, some 10,000 migrants surged across the Moroccan border into Spain's Ceuta enclave as border guards looked the other way, in what was widely seen as a punitive gesture by Rabat.
Rabat calls for the Western Sahara to have an autonomous status under Moroccan sovereignty but the Polisario wants a UN-supervised referendum on self-determination as agreed in a 1991 ceasefire agreement.
Over the years, thousands of migrants have attempted to cross the 12-kilometre (7.5-mile) border between Melilla and Morocco, or Ceuta's eight-kilometre border, by climbing the fences, swimming along the coast or hiding in vehicles.
The two territories are protected by fences fortified with barbed wire, video cameras and watchtowers.
Claimed by Morocco, the two cities have long been a flashpoint in diplomatic relations between Rabat and Madrid, which insists both are integral parts of Spain.