France and Morocco have vowed to strengthen counterterrorism cooperation, four months after they resumed judicial cooperation following a year-long diplomatic rift.

After meeting with French president Francois Hollande on Friday, Moroccan Prime Minister Abdelilah Benkilane said: "We had a difficult year of course, now it's behind us, and (relations) are resuming as if nothing had happened."

French authorities say counterterrorism and the fight against radicalization were at the top of the agenda for the meeting.

Both countries are deeply concerned by the large numbers of citizens leaving to fight with the Islamic State group in Syria and Iraq.

Morocco suspended judicial cooperation in February 2014 after French police attempted to arrest the visiting head of Moroccan intelligence. Cooperation resumed in January.