A man was detained on Tuesday after attempting to cross the border between Morocco and the Spanish enclave of Melilla while threatening police with a knife.
The man, believed to be Moroccan, approached the border at Beni Enzar at 7.35am and shouted ‘Allahu Akbar’ (God is Greatest) before he was brought down by police.
One police officer was cut on the hand during the incident.
CCTV footage shows the man, dressed in a blue shirt and white shorts, walking across the border, waving the knife.
Spanish police keep their distance before one officer runs up behind him and knocks him to the ground by striking him on the head with a white traffic bollard.
Once felled, the man is tackled by several police and detained.
Interior Minister Juan Ignacio Zoido said on Twitter: ‘The rapid, coordinated and professional conduct of the police has avoided a serious incident in Beni Enzar. All my support to the hurt officer.’
Melilla and its sister city Ceuta are two Spanish territories located on Morocco’s northern coast and as such represent the only two land borders between Africa and the European Union.
They have been hit by unrest before as migrants desperate to reach Europe regularly storm the border between both territories or try and smuggle themselves in, but this is the first attack of this type.
Spain has been spared the type of jihadist violence that has occurred in nearby Belgium, France and Germany.
But it was hit by what is still Europe’s deadliest jihadist attack in March 2004, when bombs exploded on commuter trains in Madrid, killing 191 people in an attack claimed by Al Qaeda-inspired militants.