Human rights organisations are calling for an investigation into the death of 23 people who died during a mass attempt to cross from Morocco into Spain's Melilla enclave.
Human Rights Watch is among the organisations which has called for an independent, impartial investigation with international experts and monitors.
On Friday morning, roughly 2,000 people attempted to cross the border post after cutting through a fence with many of the deaths being people who fell from the barrier separating the two sides.
The African Union has said it is shocked at the violent and degrading treatment of migrants and is calling for an investigation into the use of excessive force by Spain and Morocco.
"I call for an immediate investigation into the matter and remind all countries of their obligations under international law to treat all migrants with dignity and to prioritise their safety and human rights, while refraining from the use of excessive force," said AU Commission Chief Moussa Faki Mahamat.
Footage circulating on Twitter shows Moroccan security forces hitting men with sticks as they lie on the ground:
Hundreds of Black Africans killed or injured when trying to cross the borders of #Morocco to Melilla #Spain.
They where faced by the racist brutality from the Moroccan forces.#Imigration #AU #EU #Ukraine @hrw @amnesty @FLOTUS pic.twitter.com/B2DhAUc7Bw
— Zeini Ali Taleb (@zeinialitaleb) June 25, 2022
The Moroccan Association of Human Rights (AMDH) said some of the injured refugees were left lying on the ground for hours without being tended to.
Omar Naji, from AMDH, said the level of violence used by authorities during the attempted crossing was unprecedented.
Yet despite this, Moroccan authorities have started prosecuting 65 migrants they say helped facilitate the crossings.
The 65 people, who are from Sudan, face charges of starting fires, attacking security forces and facilitating illegal border crossings.
The Spanish prime minister described them as "mafias trafficking human beings to a city" and said, "it was an attack on the territorial integrity of our country, in a violent manner."
Critics have said that a recent warming of relations between Spain and Morocco has led to a stricter crackdown on migrants trying to enter Europe.