Over 100 African migrants forced their way into the Spanish territory of Ceuta on Wednesday after storming a barbed-wire border fence with Morocco and attacking police with caustic quicklime, a local official said.

In the second assault on the Spanish border in a month, seven police officers were lightly injured when migrants threw quicklime and battery acid as they tried to scale the fence, a spokesman for the Spanish government's representative in Ceuta told AFP, adding that some 115 migrants managed to enter the tiny territory.

An undetermined number of migrants were also injured in the assault on the border.

Images published by local newspaper El Faro de Ceuta showed bare-chested African migrants celebrating their arrival in Ceuta, many with bloody cuts to their hands.

Some waved Spanish or European Union flags as they made their way to a temporary migrant accommodation centre.