Rights for the lesbian, gay, bisexual, trans and queer (LGBTQ) community were further restricted in Hungary on Tuesday by the passing of a constitutional amendment stating a person's sex is determined at birth and unchangeable.
Adoption by same-sex couples was also ruled out under the new amendment.
"The mother is female, the father is male," the document says.
Other parts of the legislation concern education and could make it illegal for learning materials to be neutral on religious questions, or to present LGBTQ issues in a positive light.
"Hungary is protecting the right of children to the sexual identity they were born with, and guarantees an upbringing that corresponds to the values which are the basis of the constitutional identity and Christian culture of Hungary," the text says.
David Vig, the director of rights group Amnesty International in Hungary, said it was "a dark day for Hungary's LGBTQ community and a dark day for human rights."
"These discriminatory, homophobic and transphobic new laws - rushed through under the cover of the coronavirus pandemic - are just the latest attack on LGBTQ people by Hungarian authorities," Vig said in a statement.
In May, parliament already passed a law prohibiting trans or intersex people from changing their registered sex on their birth certificate.
Critics - including many in the European Union - believe Prime Minister Viktor Orban is undermining the rule of law in the country, after he also implemented restrictions on the media and scientific research.