Skip to content
Alonso Sala
CRIMINAL LAWYERS

Aiding Illegal Immigration Defence Lawyers

Specialized criminal defence in the offence of aiding illegal immigration under Art. 318 bis of the Spanish Criminal Code, including analysis of the humanitarian aid clause.

The offence of facilitating illegal immigration under Article 318 bis of the Spanish Criminal Code (CP) punishes intentionally helping a non-EU foreign national enter Spain or transit through Spanish territory in breach of immigration law, with a fine of 3 to 12 months or imprisonment from 3 months to 1 year; helping someone remain in the country irregularly is only an offence where there is intent to profit. The penalty is imposed in its upper half where there is intent to profit, an organised group, danger to life, or a minor or especially vulnerable victim. The law itself excludes criminal liability where the sole purpose of the assistance is humanitarian, and the offence is distinguished from human trafficking (Article 177 bis CP), which requires a purpose of exploitation not required here. At Alonso Sala we work the humanitarian clause, the absence of any profit motive, and the correct delimitation from trafficking.

Article 318 bis of the Spanish Criminal Code punishes aiding illegal immigration. The basic type sanctions anyone who intentionally helps a non-EU national to enter Spanish territory or transit through it in breach of immigration law. Aiding the irregular stay is only an offence where carried out with a profit motive. As criminal defence lawyers, we defend those investigated for this often misunderstood figure.

The Humanitarian Aid Clause

Article 318 bis CP itself contains an exclusion clause: the acts are not punishable where the aim pursued by the perpetrator is solely to provide humanitarian aid. This clause is essential to the defence: proving that the conduct answered to a solidarity, assistance or family purpose, and not an unlawful one, excludes criminal liability.

Aggravated Types

The penalty increases where circumstances of special gravity concur: acting with a profit motive, membership of an organisation dedicated to these activities, endangering the life or integrity of the assisted persons, or where the victim is a minor or especially vulnerable person. The defence analyses whether these elements truly concur.

Difference From Human Trafficking

It is essential to distinguish this figure from the offence of human trafficking (Art. 177 bis CP). Trafficking requires a purpose of exploitation (labor, sexual, begging, organ removal) and the use of violence, intimidation, deceit or abuse. Aiding illegal immigration does not require that purpose. An incorrect classification as trafficking multiplies the penalty.

Defence Strategies

The defence is built on several pillars: the application of the humanitarian clause, the absence of a profit motive in cases of aiding the stay, the absence of an organisation, the lack of intent and the correct delineation from human trafficking. Each of these fronts may lead to dismissal, atypicality or a substantial reduction of the penalty.

Procedure and competent court: from the Investigating Court to the National Court

As a general rule, the investigation falls to the Investigating Court (Juzgado de Instrucción) of the place where the entry, transit or facilitation takes place. Under section 1 of Article 318 bis, the penalty for the basic offence (a fine of three to twelve months or imprisonment of three months to one year, in its upper half where there is an intention of financial gain) places the trial before the Criminal Court (Juzgado de lo Penal), as it does not exceed the five-year threshold that defines that court's competence. The defence must scrutinise the prosecution's legal classification from the outset, because the trial court depends on it.

The picture changes when the aggravating circumstances of section 3 of Article 318 bis are invoked: membership of an organisation or association engaged in these activities, or endangering the life or integrity of the persons concerned. Those modalities raise the penalty to imprisonment of four to eight years, shifting the trial to the Provincial Court (Audiencia Provincial) where the penalty range exceeds five years. It is worth examining whether the evidence genuinely supports the organisational element, which requires structure, a division of roles and a degree of permanence, rather than the mere occasional involvement of several people.

Article 65.1 of the Organic Law on the Judiciary is a closed list and the facilitation of illegal immigration appears in none of its letters: neither the transnational character of the network nor the spread of its effects across several Provincial Courts attracts, on its own, the jurisdiction of the National Court (Audiencia Nacional). That court can only hear the matter where the facts were committed outside national territory and their trial falls to the Spanish courts (Article 65.1.e LOPJ). The defence can challenge both the assumption and the retention of that jurisdiction, since an improper assignment to this specialised forum may undermine the proximity of the trial. Identifying the competent court is not an incidental matter: it shapes the rules of evidence, the procedural timelines and the very strategy of the investigation.

Trafficking, exploitation and lawful donation: distinguishing 318 bis from neighbouring offences

The most common classification error confuses facilitation of illegal immigration with the trafficking in human beings of Article 177 bis. The difference is structural: Article 318 bis protects the State's control over migratory flows and is committed by intentionally helping a person to enter or transit in breach of immigration law, whereas trafficking, punishable by imprisonment of five to eight years, requires a purpose of exploitation (labour, sexual, begging, criminal activity, organ removal or forced marriage) together with means such as violence, intimidation, deception or abuse of a situation of vulnerability. Without a proven purpose of exploitation, the conduct cannot be classified as trafficking.

Exploitation must also not be confused with the free exercise of prostitution by an adult. Article 187 of the Criminal Code punishes coercively determining a person to prostitution (imprisonment of two to five years and a fine) or profiting from its exploitation (imprisonment of two to four years and a fine), but it requires coercion, deception, abuse of superiority or vulnerability, or the imposition of onerous conditions. Valid, freely given consent by an adult, in the absence of those elements, does not satisfy the offence. The defence must insist that the prosecution prove coercion or a situation of exploitation, rather than presuming it from the migratory fact alone.

An analogous distinction separates the organ trafficking of Article 156 bis from lawful donation. Trafficking, punishable by imprisonment of six to twelve years where the organ comes from a living person and of three to six years where it comes from a deceased person, presupposes obtaining or transplanting an organ outside the law. Altruistic, consented donation carried out in accordance with health regulations falls outside criminal law altogether. These dividing lines are not theoretical nuances: they determine the classification, the competent court and the applicable penalty range.

The subjective element and the evidence: what the prosecution must prove

Article 318 bis describes an intentional offence: the help must be deliberate. It is not enough to establish the physical presence of a person on Spanish territory in an irregular situation; the prosecution must prove that the accused knew of the irregular status and intended to facilitate the entry or transit in breach of immigration law. Reasonable doubt about that knowledge, or about the will to favour the conduct, must be resolved in favour of the accused. The defence can work on the absence of intent, on error, or on the non-criminal nature of socially neutral acts, such as mere transport or accommodation unconnected to the irregular crossing.

Evidence in these proceedings usually relies on telephone interceptions, geolocation, device analysis, statements by the migrants themselves and police reports. Each of these sources is open to a legality review: the chain of custody of the devices, the reasoning and proportionality of judicially authorised interceptions, the regularity of identifications, and the reliability of statements given under conditions of particular fragility. Defects in the gathering of evidence may lead to its nullity and drag down any derived evidence with it.

Particular attention should be paid to the intention of financial gain, which under section 1 shifts the penalty to its upper half. It is not presumed: it must be proven through objective data such as payments, transfers or a real economic benefit linked to the help provided. The defence can challenge automatic inferences that deduce gain from the mere existence of a movement or a prior contact, requiring each element of the aggravated offence to rest on concrete evidence rather than conjecture.

Humanitarian clause, prescription, reparation and plea agreement

The final sentence of section 1 of Article 318 bis contains a humanitarian clause of considerable defensive importance: where the sole objective of the person providing the help is to offer humanitarian assistance to the migrant, the conduct is not punishable. Section 6, separately, empowers the court to impose the penalty one degree lower in light of the gravity of the act, its circumstances, the offender's conditions and the purpose pursued. This is no mere technicality: it shields acts of disinterested aid in contexts of need, risk or emergency. The defence should document the context, the absence of any intention of gain and the strictly assistance-focused purpose of the conduct in order to activate this safety valve, written into the Criminal Code itself, which recognises that not every act of help to a foreign national in an irregular situation deserves criminal reproach.

On prescription, the basic offence of Article 318 bis prescribes after five years under Article 131 of the Criminal Code, since its maximum penalty falls within the corresponding band; the aggravated modalities of section 3, carrying penalties of up to eight years, follow the period set for that higher band. Time runs from the moment the offence is completed and may be interrupted by procedural acts directed against the accused. Carefully reviewing the relevant dates and any interrupting acts is a line of defence well worth exploring from the investigation stage.

Finally, reparation and the plea agreement (conformidad) offer real room for manoeuvre. Cooperation with the investigation, the absence of any economic benefit, restitution of harm and the personal circumstances of the accused may translate into mitigating factors and, where appropriate, into a plea agreement that fits the penalty within the statutory range. Where the protection of migrants in a vulnerable situation is involved, their status as victims and the available assistance mechanisms also shape the strategy. Any decision on a plea agreement must be taken after a careful analysis of the evidence and of the alternatives of acquittal or non-criminality.

Penalties & Consequences

Type / ScenarioCriminal Penalty
Basic typeFine of 3 to 12 months or imprisonment of 3 months to 1 year for aiding irregular entry or transit.
Aggravated typesPenalty in its upper half for profit motive, organisation, danger to life or a vulnerable victim.
Exclusion of penaltyThe acts are not punishable where the sole aim is to provide humanitarian aid.

* Penalties shown are indicative. The actual penalty depends on case circumstances, applicable mitigating and aggravating factors.

Our Defense Strategy

01

Analysis of the purpose of the conduct

Determining whether the aim was humanitarian, family or assistance-related to trigger the exclusion clause.

02

Challenging the profit motive

Rebutting the existence of consideration or benefit in cases of aiding the stay.

03

Defence against the aggravated type

Disputing the concurrence of organisation, danger to life or victim vulnerability.

04

Delineation from human trafficking

Proving the absence of a purpose of exploitation to avoid a more serious classification.

Why Choose Us?

Need a criminal defense lawyer for this type of offense? Here's how we work:

Humanitarian aid clauseProving the conduct answered solely to a humanitarian, assistance or family purpose excludes punishability.
Absence of profit motiveAiding the stay is only an offence with a profit motive; proving its absence leads to atypicality.
Delineation from traffickingAvoiding classification as human trafficking where there is no purpose of exploitation.
+15 Years of ExperienceTeam dedicated exclusively to criminal law before Spanish courts and tribunals.
Direct AttentionYour case is handled directly by a senior lawyer of the firm.
Consult My Case

Need urgent criminal defence?

Contact our specialist criminal defence lawyers. We evaluate your case confidentially.

Do you need specialised legal assistance?

The judicial system is complex. We have the criminal-law specialisation and technical resources required to take on the defence.