Updated

Police say they have arrested a Moroccan man with alleged strong links to the Islamic State armed group and who was pushing for attacks to be carried out in Spain and elsewhere in Europe.

A statement said the man was arrested Tuesday in Palma de Mallorca city on the Mediterranean island of Mallorca where he lived.

It said the detainee poses "a clear threat to national security" given that he used the Internet to promote recruitment for IS, help send potential combatants abroad and encourage attacks in Spain and elsewhere in Europe. It said he maintained close contact with IS leaders in Syria.

Spanish police have arrested dozens of suspected jihadi recruiters in recent years.