Skip to content
AS
Alonso Sala
CRIMINAL LAWYERS
ES
Legal Analysis

Online Grooming under Article 183 CP (before LO 10/2022, Art. 183 ter) and its Link to Child Pornography

calendar_todayJune 17, 2026

Last updated:

lightbulbKey Takeaways

  • check_circleArt. 183 CP: digital solicitation of minors
  • check_circleGrooming as a prior stage to Art. 189 CP
  • check_circleHomogeneous offences and the accusatory principle
  • check_circleRequirements for reclassifying the charge at sentencing

Quick answer

STS 318/2026 of the Spanish Supreme Court upholds a conviction for two offences of online grooming of minors for sexual purposes under Article 183 of the Criminal Code (CP). The Chamber holds that substituting the prosecution's legal classification with this provision does not breach the accusatory principle because both offences are homogeneous: they protect the same legal interest and fall within the same title of the CP, with no substantial change to the facts tried. It also clarifies that grooming aimed at obtaining material from a minor is a prior stage — preparation or attempt — relative to child pornography under Article 189 CP, and is punishable even if that offence is never completed. The ruling delimits the online grooming of minors through digital means.

STS 318/2026, handed down on 29 April 2026 by the Second Chamber of the Spanish Supreme Court (appeal 7186/2023), addresses two matters of practical interest in the defence of cases involving sexual offences in the digital environment: the scope of the offence under Article 183 of the Criminal Code in its relationship with child pornography under Article 189 CP, and the compatibility of a conviction under that provision with the accusatory principle where the prosecution's charge was built on a different legal basis.

Online grooming under Article 183 CP

Article 183 CP punishes contact through technological means — the internet, the telephone or similar channels — with minors under sixteen years of age with the aim of obtaining pornographic material or having the minor witness or participate in acts of a sexual nature. The punishable conduct does not require that the intended purpose be achieved: it is enough that the adult carries out the grooming acts with that aim.

This provision responds to a well-documented reality: the solicitation of minors through social networks, messaging applications or other digital platforms, generally preceded by a process of approach that seeks to build trust before introducing elements of sexual content. Its systematic position within the title dedicated to offences against sexual freedom and sexual integrity reflects that the protected legal interest is the sexual integrity of the minor — understood as the right of minors of a certain age not to be drawn into sexual contexts for which they lack sufficient maturity.

Link with child pornography under Article 189 CP

One of the most relevant points in the judgment concerns the relationship between Article 183 and Article 189 CP. The latter punishes the production, distribution and possession of child sexual abuse material, and requires that such material has come into existence or is held by the perpetrator.

The Supreme Court clarifies in this ruling that grooming directed at obtaining that material operates at a prior stage to the offence under Article 189: it constitutes its preparation or, in technical terms, a form of attempt that goes further than a simple verbal request. The Chamber stresses that this prior stage is independently criminalised and is punishable even if the more serious offence is never completed, which closes the gap that might otherwise exist between the grooming conduct and the actual production of material.

This relationship between the two provisions is practically relevant for the classification of the facts: where grooming produced no result but the sexual purpose is established, Article 183 provides the appropriate criminal basis without needing to stretch the application of Article 189.

The accusatory principle and homogeneous offences

The second issue in the judgment is procedural: whether convicting under Article 183 when the prosecution had built its charge on a different legal basis infringes the accusatory principle.

This principle, of constitutional standing, requires that no one be convicted for facts or for an offence against which they have not been able to defend themselves. Its purpose is to guarantee the right of defence: the accused must know with sufficient notice and precision the facts imputed to them and the legal classification proposed.

The Supreme Court recalls its settled doctrine on homogeneous offences: where two criminal provisions protect the same legal interest, fall within the same title of the Criminal Code and conviction under one of them introduces no new facts and does not substantially alter those already under debate, the court may apply whichever provision it considers correct without infringing the accusatory principle. This is so because the accused has been able to defend against the facts, which remain unchanged, and the variation is purely one of legal characterisation.

Requirements for homogeneity

The Chamber makes clear that homogeneity is not a flexible concept that permits any substitution of classification. For it to operate, the following elements must all be present:

  • Identity or proximity of the protected legal interest: in this case, the sexual integrity of the minor, which is common to the provisions in the title dedicated to offences against sexual freedom and integrity.
  • Location in the same title of the Criminal Code, which provides a systematic signal that the legislature has treated them as variants of the same protective sphere.
  • Absence of substantial alteration of the facts: the factual basis on which the new classification operates must be the same as that which the prosecution placed before the defence.
  • A real opportunity to defend: the accused must have had the chance to know and challenge the relevant facts, even if the legal label changes.

Where any of these requirements is missing, a conviction for a different offence from the one charged infringes the accusatory principle and opens the route to appeal. The judgment is, in this respect, a useful reference both for assessing the soundness of charges and for building grounds of challenge when an unexpected variation occurs in the judgment.

Practical significance of the ruling

STS 318/2026 has direct implications for cases in which the conduct under investigation involves the solicitation of minors through digital means. First, it makes clear that Article 183 CP does not require the effective production of material, which reinforces the autonomy of that offence and its applicability to early stages of the grooming process. Second, it defines the conditions under which a change of classification based on homogeneity is compatible with the accusatory principle, providing guidance for both the defence and prosecution strategies in these cases.

For the defence, the judgment recalls that homogeneity has precise limits: if the new classification imposes a substantially different sentencing range, introduces different factual elements or deprives the defence of the chance to challenge some relevant matter, the accusatory principle will have been breached and the decision will be open to appeal. The quality of the prior analysis of these limits can be decisive for the outcome of the challenge.

Frequently asked questions

What conduct does Article 183 of the Criminal Code punish?expand_more

Article 183 CP punishes contact through technological means — the internet, the telephone or similar channels — with minors under sixteen years of age with the aim of obtaining pornographic material or having the minor witness or participate in acts of a sexual nature. The offence requires that the contact occur through those means and that the adult pursue that specific sexual purpose regarding the minor, even if it is never achieved. The provision is commonly known as online grooming or cyber sexual solicitation of minors.

When are two offences homogeneous for the purposes of the accusatory principle?expand_more

The Supreme Court treats two criminal offences as homogeneous when they protect the same legal interest, are located in the same title of the Criminal Code, and the substitution of one for the other introduces no new facts and causes no real defencelessness for the accused. Where those conditions are met, the court may convict under whichever provision is correct without infringing the accusatory principle, provided the proven facts remain unchanged.

What is the difference between Art. 183 CP and child pornography under Art. 189 CP?expand_more

Article 189 CP punishes the production, distribution or possession of child sexual abuse material: it requires that such material exist or be obtained. Article 183 operates at an earlier stage: it punishes the grooming conduct aimed at obtaining that material, even if the offence under Article 189 is never completed. They are complementary provisions: grooming may constitute the preparation or the attempt of the more serious offence.

Can the court convict for an offence different from the one charged by the prosecution?expand_more

It may do so where the offences are homogeneous and the requirements set by the Supreme Court are met: the same protected legal interest, the same title of the Criminal Code, no substantial alteration of the facts and a real opportunity for the accused to defend against that classification. If any of those conditions is missing, a conviction under a different provision would breach the accusatory principle and the right of defence, opening the corresponding avenue of appeal.

child_care

gavelDo you need criminal defense in this area?

We are criminal defense lawyers specializing in online grooming of minors. We act urgently to protect your rights.

View expertisearrow_forward
gavel

Case law discussed

Online grooming under Article 183 as a preparatory step to child pornography

This analysis discusses a ruling of the Criminal Chamber of the Spanish Supreme Court. You can see its summary and full citation on our case-law page.

balanceView the ruling· Judgment 318/2026arrow_forward

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