Skip to content
AS
Alonso Sala
CRIMINAL LAWYERS
ES
Legal Analysis

Sexual assault with penetration (rape) in Spain: what Article 179 of the Criminal Code says and how it is defended

calendar_todayJune 19, 2026

Last updated:

lightbulbKey Takeaways

  • check_circleArt. 179 CP punishes rape with four to twelve years' imprisonment
  • check_circleWith violence, intimidation or an overridden will, the penalty rises to 6-12 years
  • check_circleThe Art. 180 CP aggravating factors raise the range up to 12-15 years
  • check_circleConsent (Art. 178.1 CP) requires a clear, positive expression of will
  • check_circleThe victim's testimony is weighed for implausibility, plausibility and persistence

Quick answer

Article 179 of the Spanish Criminal Code treats sexual assault with penetration (vaginal, anal or oral carnal access, or the insertion of body parts or objects) as rape, punishable by four to twelve years' imprisonment, rising to six to twelve years where violence, intimidation or an overridden will are present, and further still under the Article 180 aggravating factors.

Few accusations have such an immediate impact as that of a rape offence. The social stigma, the risk of pre-trial detention and the high penalty the law provides make these among the most sensitive proceedings in criminal law. After the 2022 consent reform, it is worth setting out precisely what Article 179 of the Spanish Criminal Code punishes today, how it differs from basic sexual assault, which aggravating factors can drive the sentence up and which lines of defence are genuinely workable. We explain this from the firm's technical standpoint, without alarmism and without promises.

What rape is today: Article 179 CP

The Criminal Code reserves the term rape for a specific and especially serious form of sexual assault. Under Article 179 CP, rape is committed by anyone who carries out a sexual assault consisting of vaginal, anal or oral carnal access, or of the insertion of body parts or objects by either of the first two routes. It is not, therefore, any act of a sexual nature: what qualifies the offence and turns it into rape is penetration.

That distinction is decisive. The same situation may give rise to a basic sexual assault under Article 178 or to rape under Article 179 depending on an objective fact: whether or not there was penetration as the law describes it. In practice, the classification of the facts is therefore frequently contested on precisely that point.

The penalties: four to twelve years (and up to fifteen)

Article 179 CP sets a base penalty of four to twelve years' imprisonment. The range itself rises, however, when certain circumstances are present in how the act is carried out:

  • Violence or intimidation, or overriding of the victim's will: where the assault is committed using physical force, threats, or against a person whose will is overridden for any reason (for example, in situations of unconsciousness or chemical submission), the penalty falls between six and twelve years.
  • Aggravating factors under Article 180 CP: certain circumstances raise the bracket further still, potentially reaching seven to fifteen years in the aggravated basic form and twelve to fifteen years in the most serious form.

The difference between one band and another is far from minor: it can mean years in prison. That is why the defence focuses not only on whether the events took place, but on exactly how they are classified and which criminal subtype they fall under.

The severity of these penalties has an immediate procedural effect. Because of the nature of the offence and the sentence it carries, it is common in the early stages of the proceedings for pre-trial detention or precautionary measures such as a restraining order to be considered, often before the defence has had the chance to articulate its strategy. Legal involvement from the very first statement is therefore decisive: it shapes both the suspect's personal situation and the subsequent course of the case. Acting early also allows relevant evidence to be identified and preserved while it is still available, rather than reconstructed months later.

The aggravating factors under Article 180 CP

Article 180 CP sets out a catalogue of circumstances that, where present, aggravate the penalty for sexual assault with penetration. The most common include:

  • Joint action by two or more people.
  • The particular vulnerability of the victim, whether by reason of age, illness, disability or situation.
  • Abuse of a position of superiority or of a family relationship between the offender and the victim.
  • The use of weapons or other dangerous means.

Whether or not the court finds these aggravating factors directly determines the applicable sentencing band. Their analysis is therefore a technical battleground of the first order: arguing whether a particular fact in the account genuinely fits the legal definition of the aggravating factor can make the difference between two very different sentencing frameworks.

The consent framework: 'only yes means yes'

Organic Law 10/2022 on the comprehensive guarantee of sexual freedom, known as the 'only yes means yes' law, and its later amendment by Organic Law 4/2023, completely reordered this area. The former distinction between sexual abuse (without violence) and sexual assault (with violence or intimidation) disappeared: today any sexual act without consent is sexual assault, and violence or intimidation operate as circumstances that aggravate the penalty, not as an element that defines the offence.

The key point is that the centre of gravity of the offence has shifted to consent. The penetration type under Article 179 was retained, but its existence now depends on consent not being present in the specific act being tried.

How consent is defined (Art. 178.1 CP)

Article 178.1 CP contains the legal definition: consent is understood to exist only when it has been freely expressed through acts that, in light of the circumstances of the case, clearly convey the person's will. Several practical consequences follow from this definition:

  • Consent is a positive expression of will: it is built on the presence of a yes, not on the absence of a no.
  • It is given act by act: consent to one form of conduct does not automatically extend to others.
  • It is revocable at any time, even once an encounter has begun.
  • It cannot be inferred from previous relationships, from silence or from passivity.

This new paradigm has two sides for the defence. On one hand, it raises the requirement of clarity. On the other, it opens the route of mistake: if the accused acted on a reasonable belief that consent existed, that question must be examined, as it may affect intent and, with it, criminal liability.

The evidence: the weight of the victim's testimony

These offences are almost always committed in private, without direct witnesses, so the evidence often comes down to the complainant's account against that of the suspect. The case law accepts that the victim's testimony can be sufficient incriminating evidence to displace the presumption of innocence, but only if it passes demanding scrutiny. The Supreme Court structures that assessment around three parameters:

  • Absence of subjective implausibility: that there are no ulterior motives (resentment, revenge, prior conflicts) capable of undermining the reliability of the account.
  • Plausibility: that the version is surrounded by objective peripheral corroboration supporting it (medical reports, messages, geolocation data, hearsay witnesses).
  • Persistence in the accusation: that the account remains coherent and free of essential contradictions throughout the proceedings.

The analysis of expert evidence (forensic medical, psychological, toxicological) and of digital evidence is often decisive. In cases of chemical submission, for instance, the toxicological reports must be examined rigorously, because the mere presence of a substance does not automatically amount to the overriding of the will unless certain levels are reached. A sound defence against a charge of this gravity calls for lawyers who specialise in sexual assault with penetration and can handle the legal, evidential and forensic dimensions at the same time.

Lines of defence against a rape charge

There is no single defence: each case dictates its own strategy depending on the facts and the available evidence. The most common lines, always within respect for the presumption of innocence, are:

  • Establishing consent: showing that the encounter was freely consented to, supported by the relational context and the available objective evidence.
  • Mistake as to consent: examining whether the accused may have acted on a reasonable belief that consent existed, which bears directly on intent.
  • Challenging the incriminating evidence: careful examination of the complainant's account for relevant inconsistencies and of the strength of the corroboration.
  • Scrutiny of forensic and digital evidence: verification of the chain of custody, of the proper conduct of the expert reports and of the interpretation of toxicological findings.
  • Disputing the classification: arguing the applicable subtype and whether or not the aggravating factors under Article 180 CP apply, which can substantially reduce the sentencing range.

In any event, the suspect's position calls for extreme caution from the very first statement: scrupulously complying with any precautionary measure imposed, refraining from all contact with the complainant and channelling every step through their lawyer.

Specialist defence with Alonso Sala

A charge of sexual assault with penetration demands a technical response from the outset. At Alonso Sala, a criminal defence firm based in Madrid (calle Velázquez 27) with coverage throughout Spain, we approach this type of proceeding with rigour, discretion and a detailed analysis of the evidence. Each matter is studied individually, in light of its specific circumstances and the legal framework in force after the most recent reforms, in order to build the defence strategy that best fits the facts.

Frequently asked questions

What is the penalty for sexual assault with penetration under Article 179 CP?expand_more

The base penalty is four to twelve years' imprisonment. Where the assault is committed with violence or intimidation, or against a victim whose will has been overridden, the range rises to six to twelve years. If the aggravating circumstances in Article 180 CP also apply (for example, joint action by two or more people or abuse of a position of superiority), the bracket can reach seven to fifteen years, and even twelve to fifteen years in the most serious cases.

Does the offence of rape still exist after the 'only yes means yes' reform?expand_more

Yes. Organic Law 10/2022, amended by Organic Law 4/2023, merged the former abuse and assault offences into a single concept of sexual assault based on the absence of consent, but it kept the type qualified by penetration. Article 179 CP still expressly uses the term rape where the assault consists of carnal access or the insertion of body parts or objects. What changed is the definition of consent, not the existence of the offence.

How is consent defined in a rape case?expand_more

Article 178.1 CP provides that consent exists only when it has been freely expressed through acts that, in light of the circumstances, clearly convey the person's will. The mere absence of an explicit refusal is not enough: a positive expression of will is required. Consent is given act by act, can be withdrawn at any time, and cannot be inferred from previous encounters or from silence.

Is the victim's testimony alone enough to secure a conviction for rape?expand_more

It can be, but only under rigorous scrutiny. Spain's Supreme Court requires the victim's testimony to be assessed against three parameters: the absence of subjective implausibility (no ulterior motives), plausibility (peripheral corroboration) and persistence in the accusation. The presumption of innocence requires the conviction to rest on sufficient incriminating evidence and any reasonable doubt to benefit the accused.

What is the difference between Article 178 and Article 179 of the Criminal Code?expand_more

Article 178 CP governs sexual assault in its basic form, punishable by one to four years' imprisonment. Article 179 CP sets out the qualified, more serious form: where the assault consists of penetration, whether vaginal, anal or oral carnal access, or the insertion of body parts or objects vaginally or anally. That penetration is what turns the conduct into rape and substantially raises the penalty.

Related Articles

View allarrow_forward

Knowledge is power, but strategy is key.

What you read here is just the beginning. Transform information into active defense by contacting our team of experts.

call