Morocco and Spain pledged on Wednesday to cooperate more closely to curb illegal migration, an issue fueling the growth of far right and populist politics in Europe, following a near halving of migrant arrivals in mainland Spain this year from 2018.

The two countries will work together to counter illegal migration networks, terrorism and organized crime, Spanish Interior minister Grande-Marlaska Gomez told reporters after talks with Moroccan counterpart Abdelouafi Laftit.

Recent years have seen hundreds of thousands of migrants a year attempting the journey to Europe from North Africa, with thousands dying at sea.