The top human rights court in the Americas has found Peru responsible for the arbitrary detention and rape of a transgender woman in a landmark case marking the first time it has ruled on a complaint of torture against a member of the LGBT+ community.

The Inter-American Court of Human Rights in a ruling made public on Monday said Azul Rojas Marin had been the victim of an act of torture in 2008, and it ordered the government to pay her unspecified damages.

According to her lawyers, Ms Marin was detained by police in 2008 in northern Peru and while in custody was stripped, hit and raped with a truncheon by police.

Ms Marin had filed a criminal complaint against police but the case was dismissed by state prosecutors, and human rights groups took it to the Inter-American Court on her behalf.

As the judicial arm of the 35-member Organisation of American States, the court hears cases of human rights abuses in Latin America and can order governments to investigate crimes and compensate victims.

LGBT+ rights around the globe Show all 9 1 /9 LGBT+ rights around the globe LGBT+ rights around the globe Russia Russia’s antipathy towards homosexuality has been well established following the efforts of human rights campaigners. However, while it is legal to be homosexual, LGBT couples are offered no protections from discrimination. They are also actively discriminated against by a 2013 law criminalising LGBT “propaganda” allowing the arrest of numerous Russian LGBT activists. AFP/Getty LGBT+ rights around the globe Brunei Brunei recently introduced a law to make sodomy punishable by stoning to death. It was already illegal and punishable by up to 10 years in prison AFP/Getty LGBT+ rights around the globe Mauritania Men who are found having sex with other men face stoning, while lesbians can be imprisoned, under Sharia law. However, the state has reportedly not executed anyone for this ‘crime’ since 1987 Alamy LGBT+ rights around the globe Sudan Both male and female same-sex sexual activity is illegal under Sudanese law. Men can be executed on their third offence, women on their fourth Getty LGBT+ rights around the globe Saudi Arabia Homosexuality and gender realignment is illegal and punishable by death, imprisonment, whipping and chemical castration Getty LGBT+ rights around the globe Yemen The official position within the country is that there are no gays. LGBT inviduals, if discovered by the government, are likely to face intense pressure. Punishments range from flogging to the death penalty Getty LGBT+ rights around the globe Nigeria Both male and female same-sex sexual activity is illegal and in some northern states punishable with death by stoning. This is not a policy enacted across the entire country, although there is a prevalent anti-LGBT agenda pushed by the government. In 2007 a Pew survey established that 97% of the population felt that homosexuality should not be accepted. It is punishable by 14 years in prison Reuters LGBT+ rights around the globe Somalia Homosexuality was established as a crime in 1888 and under new Somali Penal Code established in 1973 homosexual sex can be punishable by three years in prison. A person can be put to death for being a homosexual Reuters LGBT+ rights around the globe Iraq Although same-sex relationships have been decriminalised, much of the population still suffer from intense discrimination. Additionally, in some of the country over-run by the extremist organisation Isis, LGBT individuals can face death by stoning Getty

The ruling, issued on 12 March but made public on Monday, ordered Peru to provide psychological treatment to the victim, adopt new protocols for investigating attacks against LGBT+ people and track statistics of violence against the community.

The ruling marked the first time the court has ruled on a complaint of torture against a member of the LGBT+ community, rights campaigners said.

“It is a very emblematic case. It's historic because it classifies the violence received by this woman as torture,” said Andre Mere Rivera, a local LGBT+ rights activist.

“It makes the state responsible for the violence and discrimination that [the LGBT+ community] has historically suffered and continues to suffer,” he told the Thomson Reuters Foundation.

A spokesperson for the Peruvian ministry of justice and human rights did not immediately respond to a request for comment.

In its ruling, the court said Ms Marin's detention was discriminatory, illegal and arbitrary.

“Ms Rojas Marin was forcibly stripped naked, beaten on several occasions ... and was the victim of rape; constituting an act of torture against the victim,” the court said in a statement.

Consequently, it said, Peru was responsible for the violation of her rights.

Despite growing acceptance of LGBT+ people in Peruvian society, gay and trans Peruvians face legal hurdles and societal prejudice.

Gay marriage is not recognised in Peru, although trans people are allowed to change their gender legally.

A 2015 study by the Peruvian government found 90 per cent of LGBT+ residents in and around the capital Lima had been victims of some type of violence, of which nearly 19 per cent was at the hands of state security agents.

The decision came as trans Peruvians contend with measures enacted by the government to curb the coronavirus outbreak by ordering that men and women can only leave home on separate days .

Rights advocates said the rule has left trans people vulnerable to invasive questioning and harassment by police, despite government assurances that enforcement would be free from discrimination.

“[The ruling] should serve to remind authorities that violence and discrimination against LGBT people contravenes international human rights law,” said Cristian Gonzalez Cabrera, an LGBT+ rights researcher at Human Rights Watch, a global non-profit.