Reports suggest Abdelbaki Es Satty, the imam thought to have acted as the Barcelona terror attack’s mastermind, should have been deported from Spain in 2014 after completing a prison sentence — but judges accepted this would breach his human rights.

Various outlets have reported claims by the the Spanish daily newspaper El Mundo that Satty was ordered to leave the country in April 2014 after serving a sentence for drug smuggling, but judges agreed deportation would breach his human rights when he launched a legal appeal.

Barcelona Terror Imam Lived with Al Qaeda Recruiter, Linked to Madrid Bombing

https://t.co/Px1AVQVaKv — Breitbart London (@BreitbartLondon) August 22, 2017

El Mundo has published pictures of what is believed to be the imam’s home in Morocco, surrounded by cannabis plants.

There is a lively seaborne trade between the North African dictatorship and Spain, dealing mainly in cannabis and illegal tobacco, but also arms and illegal migrants.

Law enforcement recently told El Pais investigators that the increasingly violent trade “has turned into warfare, and we are losing.”

Report: Barcelona Jihadists Intended to Blow Up Christian Basilica of Sagrada Familia https://t.co/GGgTLIMLvg — Breitbart London (@BreitbartLondon) August 20, 2017

After successfully appealing his deportation, the drug dealer applied for asylum, ultimately allowing him to travel freely throughout the European Union’s borderless Schengen Zone — described as “effectively an international passport-free zone for terrorists” by former Interpol chief Robert Noble .

Satty is thought to have travelled to the EU capital in Brussels, Belgium, shortly before the terror bombings there in 2016.

The attack on the Catalan capital which Satty masterminded has so far claimed 15 lives and left over 150 people injured. It could have killed substantially more had he not been killed when the stockpile butane gas canisters and acetone peroxide (TATP) he was stockpiling in a house in Alcanar exploded, preventing its use in La Ramblas.

‘This Place Is Lost’: Barcelona Chief Rabbi Tells Spain’s Jews to Head for Israel via @sunsimonkent https://t.co/0YLBCAiJvz — Breitbart London (@BreitbartLondon) August 20, 2017

Following the atrocity, the conservative government in Poland warned that the attack was the “tragic end” of the weak immigration policies of the EU’s leadership, and the governments of some of its Western and Northern European member-states.

“We are all shaken by the information that comes to us from Spain, and we share the pain of the families of the victims,” commented Deputy Defence Minister Michał Dworczyk.

“However, we cannot ignore the fact that we have a serious problem in Europe with the influx of illegal immigrants. It is a very bad idea to invite people who cannot be controlled [and can] be said to pose a threat to EU citizens.”

Fo llow Jack Montgomery on Twitter: @JackBMontgomery