Moroccan authorities have dropped a case against a Spanish activist investigated for alleged links to people traffickers despite her humanitarian work helping officials rescue migrants crossing the Mediterranean Sea.

Helena Maleno informs both Spanish and Moroccan maritime services when migrants are in distress making the journey in flimsy boats as part of her role for NGO Walking Borders.

She is one of several human rights activists across Europe to have faced prosecution for attempting to help migrants and refugees in recent years.

In 2012, Spanish police investigated what they alleged were possible links between Ms Maleno and human trafficking gangs.

A Spanish court later dropped the case. Moroccan officials carried out a parallel investigation until it was closed on Monday, according to the campaigner.

In pictures: A day of refugee rescues in the Mediterranean Sea Show all 7 1 /7 In pictures: A day of refugee rescues in the Mediterranean Sea In pictures: A day of refugee rescues in the Mediterranean Sea A baby being taken on to MSF's Bourbon Argos ship from a boat carrying 130 migrants and refugees Lizzie Dearden In pictures: A day of refugee rescues in the Mediterranean Sea A refugee boat carrying 101 people being rescued by MSF's Bourbon Argos Lizzie Dearden In pictures: A day of refugee rescues in the Mediterranean Sea A refugee boat carrying 101 people being rescued by MSF's Bourbon Argos all images by Lizzie Dearden In pictures: A day of refugee rescues in the Mediterranean Sea A baby among refugees on a boat carrying 185 people off the coast of Libya Lizzie Dearden In pictures: A day of refugee rescues in the Mediterranean Sea Migrants and refugees sleeping after being rescued by MSF's Bourbon Argos ship Lizzie Dearden In pictures: A day of refugee rescues in the Mediterranean Sea A crew from MSF's Bourbon Argos ship rescuing a boat carrying 130 migrants and refugees off the coast of Libya, at sunrise Lizzie Dearden In pictures: A day of refugee rescues in the Mediterranean Sea A woman in a stretcher being lifted onto MSF's Bourbon Argos ship from a boat carrying 130 migrants and refugees off the coast of Libya Lizzie Dearden

Ms Maleno, who lives in Morocco, said: “I am content because justice has been done, in this country, my country. Today the nightmare which began in 2012 has finished.

“I have learned that this is a very difficult time for the human rights defenders, as we are being persecuted and criminalised,” she added in a video statement posted on Twitter.

“Europe has become a very dangerous continent for the people who defend the rights of migrants.”

Ms Maleno is not the only campaigner to have run into legal difficulties.

In 2016, Denmark’s High Court upheld a people smuggling conviction for a couple who illegally “assisted” family of Syrian refugees by giving them a lift and a cup of coffee.

Lisbeth Zornig Andersen and Mikael Lindholm were also fined 50,000 krone (£5,700) for driving the group from Rodby in southern Denmark to Copenhagen.

Lisbeth Zornig with the family of Syrian refugees she drove to Copenhagen (Lisbeth Zornig)

Cédric Herrou, a French farmer who helped migrants cross the border from Italy and offered them accommodation, was given a four-month suspended prison sentence in February 2017.

In August 2017, an unofficial rescue boat operated by the German NGO Jugend Rettet was seized by the Italian authorities. An Italian court rejected a request by the NGO to release the ship last year, after police said evidence showed it had been used for “activities facilitating illegal immigration”.

And last year two humanitarian volunteers from Denmark and three from Spain were acquitted of attempting to traffic asylum seekers by a court in Greece.

Support free-thinking journalism and attend Independent events

The five men had worked with the Team Humanity and PROEM-AID groups assisting refugees on the island of Lesbos.

Ms Maleno said on Monday that the “fact that this case was dropped sets an example for us to continue our work”.