A majority in Brazil’s Supreme Court has voted in favour of making homophobia and transphobia crimes.
Six out of 11 judges voted to consider discrimination against gays and transgender people equivalent to racism.
The decision will give the community, which suffers constant attacks, real protection, activists say.
At least 141 LGBT people have been killed in Brazil this year, according to rights group Grupo Gay da Bahia.
The Catholic Church and the evangelical movement are frequently critical of gay rights and far-right President Jair Bolsonaro, elected last year with strong support of conservative voters, is a self-described homophobe.