Spain's Interior Ministry says police have arrested a man suspected of belonging to an al-Qaida linked terror organization and participating in the Syrian conflict.

The suspect, named as Abdeluahid Sadik Mohamed, was nabbed at Malaga airport in southern Spain on Sunday after arriving on a flight bound from Istanbul, a statement said.

He had had left Casablanca, Morocco, on May 2 to travel to Syria, which he entered by crossing the Turkish border after spending a few days in Istanbul.

Once in Syria, he trained in a camp belonging to the Islamic State of Iraq and the Levant (ISIL), a terrorist organization linked to al-Qaida, the statement says.

He was arrested because he was considered a threat to national security.