(CNN) — Hundreds of protesters gathered in Spain’s capital Madrid on Monday night after a Barcelona court cleared five men of sexual assault charges, ruling the crime did not fit the legal definition of rape because the unconscious teenage victim didn’t fight back.

Under Spanish law, a sexual attack can only be classified as an assault or rape if the perpetrator uses violence or intimidation.

Because the 14-year-old victim was unconscious, the five were convicted of a lesser charge of sexual abuse last week and sentenced to 10 to 12 years in prison, despite the prosecution arguing they should be charged with assault.

Congregating in front of the Justice Ministry, demonstrators chanted, “it’s not abuse, it’s rape” and “you are not alone.” Some held placards which read: “Enough patriarchal justice,” and “Only yes means yes.”

Barcelona’s mayor Ada Colau has condemned the court’s ruling, posting on Twitter: “Another outrageous sentence of the #PatriarchalJustice who does not want to understand that only YES is YES.”

The attack happened at a party in Manresa, a town northwest of Barcelona, in 2016. The court heard that the group was partying in an abandoned factory, when the victim consumed “alcohol and drugs” and became unconscious.

The men then took turns performing sexual acts on the teenager, according to a statement published on the court’s website.

“The sexual attack on the victim was extremely intense and especially denigrating, and in addition, it was produced on a minor who was in a helpless situation,” the court said in the press release.

However, the court said the victim was “in a state of unconsciousness … without being able to determine and accept or oppose the sexual relations maintained with defendants, who could perform sexual acts without using any type of violence or intimidation.”

The court said the attack had to be classified as sexual abuse because “it has been proven that the victim, while the events took place … was in a state of unconsciousness,” according to a statement published on its website.

The court also awarded the victim 12,000 euros ($13,400) in damages. Two more men attending the party were acquitted of all crimes, the court said.

Echoes of ‘Wolf Pack’ case

The hearing sparked protests across Spain reminiscent of the response to a similar case in which five men, dubbed “the Wolf Pack,” were originally acquitted of rape and convicted of abuse. Spain’s Supreme Court overturned the decision in June, after a year of demonstrations, sentencing the men to 15 years in prison for rape.

The case shocked the nation and prompted widespread outrage, which was ultimately diverted towards Spain’s judicial system.

However, while the “Wolf Pack” controversy stemmed from the interpretation of the law and what constitutes intimidation, the Manresa attack put a spotlight on what activists said is a flaw in the Spanish legal system.

The court in Barcelona said in the press release that the attack “cannot fit into any other criminal typology” because the attackers “could perform sexual acts without using any type of violence or intimidation.”

That explanation has sparked more calls for the law to be changed. Protesters gathered in front of the court during the months-long hearing, holding placards that read: “It’s rape.”

The Spanish Association of Women Judges has previously called for a reform of the law, urging the government to act quickly.

(Copyright (c) 2024 CNN. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox