Rights affecting lesbian, gay, bisexual, and transgender (LGBT) people vary greatly by country or jurisdiction—encompassing everything from the legal recognition of same-sex marriage to the death penalty for homosexuality.
Restrictions of association with arrest or detention
Rings indicate local or case-by-case application. 1No imprisonment in the past three years or moratorium on law. 2Marriage not available locally. Some jurisdictions may perform other types of partnerships.
Notably, as of February 2024[update], 36 countries recognize same-sex marriage. By contrast, not counting non-state actors and extrajudicial killings, only two countries are believed to impose the death penalty on consensual same-sex sexual acts: Iran and Afghanistan. The death penalty is officially law, but generally not practiced, in Mauritania, Saudi Arabia, Somalia (in the autonomous state of Jubaland) and the United Arab Emirates. LGBT people also face extrajudicial killings in the Russian region of Chechnya. Sudan rescinded its unenforced death penalty for anal sex (hetero- or homosexual) in 2020. Fifteen countries have stoning on the books as a penalty for adultery, which (in light of the illegality of gay marriage in those countries) would by default include gay sex, but this is enforced by the legal authorities in Iran and Nigeria (in the northern third of the country).
In 2011, the United Nations Human Rights Council passed its first resolution recognizing LGBT rights, following which the Office of the United Nations High Commissioner for Human Rights issued a report documenting violations of the rights of LGBT people, including hate crimes, criminalization of homosexual activity, and discrimination. Following the issuance of the report, the United Nations urged all countries which had not yet done so to enact laws protecting basic LGBT rights. A 2022 study found that LGBT rights (as measured by ILGA-Europe's Rainbow Index) were correlated with less HIV/AIDS incidence among gay and bisexual men independently of risky sexual behavior.
sodomy laws that penalize consensual same-sex sexual activity. These may or may not target homosexuals, males or males and females, or leave some homosexual acts legal.
Ayoni or non-vaginal sex of all types is punishable in the Arthashastra. Homosexual acts are, however, treated as a smaller offence punishable by a fine, while unlawful heterosexual sex carries much harsher punishment. The Dharmsastras, especially the later ones, prescribe against non-vaginal sex like the Vashistha Dharmasutra. The Yājñavalkya Smṛti prescribes fines for such acts including those with other men. Manusmriti prescribes light punishments for such acts. Vanita states that the verses about punishment for a sex between female and a maiden is due to its strong emphasis on a maiden's sexual purity.
Ancient Israel
The ancient Law of Moses (the Torah) forbids men from lying with men (i.e., from having intercourse) in Leviticus 18 and gives a story of attempted homosexual rape in Genesis 19, in the story of Sodom and Gomorrah, after which the cities were soon destroyed with "brimstone and fire, from the Lord" and the death penalty was prescribed to its inhabitants – and to Lot's wife, who was turned into a pillar of salt because she turned back to watch the cities' destruction. In Deuteronomy 22:5, cross-dressing is condemned as "abominable".
Assyria
In Assyrian society, sex crimes were punished identically whether they were homosexual or heterosexual. An individual faced no punishment for penetrating someone of equal social class, a cult prostitute, or with someone whose gender roles were not considered solidly masculine. Such sexual relations were even seen as good fortune, with an Akkadian tablet, the Šumma ālu, reading, "If a man copulates with his equal from the rear, he becomes the leader among his peers and brothers". However, homosexual relationships with fellow soldiers, slaves, royal attendants, or those where a social better was submissive or penetrated, were treated as bad omens.
Middle Assyrian Law Codes dating 1075 BC has a particularly harsh law for homosexuality in the military, which reads: "If a man have intercourse with his brother-in-arms, they shall turn him into a eunuch." A similar law code reads, "If a seignior lay with his neighbor, when they have prosecuted him (and) convicted him, they shall lie with him (and) turn him into a eunuch". This law code condemns a situation that involves homosexual rape. Any Assyrian male could visit a prostitute or lie with another male, just as long as false rumors or forced sex were not involved with another male.
Ancient Rome
In ancient Rome, the bodies of citizen youths were strictly off-limits, and the Lex Scantinia imposed penalties on those who committed a sex crime (stuprum) against a freeborn male minor. Acceptable same-sex partners were males excluded from legal protections as citizens: slaves, male prostitutes, and the infames, entertainers or others who might be technically free but whose lifestyles set them outside the law.
A male citizen who willingly performed oral sex or received anal sex was disparaged, but there is only limited evidence of legal penalties against these men. In courtroom and political rhetoric, charges of effeminacy and passive sexual behaviors were directed particularly at "democratic" politicians (populares) such as Julius Caesar and Mark Antony.
Roman law addressed the rape of a male citizen as early as the 2nd century BC when it was ruled that even a man who was "disreputable and questionable" had the same right as other citizens not to have his body subjected to forced sex. A law probably dating to the dictatorship of Julius Caesar defined rape as forced sex against "boy, woman, or anyone"; the rapist was subject to execution, a rare penalty in Roman law. A male classified as infamis, such as a prostitute or actor, could not as a matter of law be raped, nor could a slave, who was legally classified as property; the slave's owner, however, could prosecute the rapist for property damage.
In the Roman army of the Republic, sex among fellow soldiers violated the decorum against intercourse with citizens and was subject to harsh penalties, including death, as a violation of military discipline. The Greek historian Polybius (2nd century BC) lists deserters, thieves, perjurers, and "those who in youth have abused their persons" as subject to the fustuarium, clubbing to death. Ancient sources are most concerned with the effects of sexual harassment by officers, but the young soldier who brought an accusation against his superior needed to show that he had not willingly taken the passive role or prostituted himself. Soldiers were free to have relations with their male slaves; the use of a fellow citizen-soldier's body was prohibited, not homosexual behaviors per se. By the late Republic and throughout the Imperial period, there is increasing evidence that men whose lifestyle marked them as "homosexual" in the modern sense served openly.
Although Roman law did not recognize marriage between men, and in general Romans regarded marriage as a heterosexual union with the primary purpose of producing children, in the early Imperial period some male couples were celebrating traditional marriage rites. Juvenal remarks with disapproval that his friends often attended such ceremonies. The emperor Nero had two marriages to men, once as the bride (with a freedmanPythagoras) and once as the groom. His consort Sporus appeared in public as Nero's wife wearing the regalia that was customary for the Roman empress.
Apart from measures to protect the prerogatives of citizens, the prosecution of homosexuality as a general crime began in the 3rd century of the Christian era when male prostitution was banned by Philip the Arab. By the end of the 4th century, after the Roman Empire had come under Christian rule, passive homosexuality was punishable by burning. "Death by sword" was the punishment for a "man coupling like a woman" under the Theodosian Code. Under Justinian, all same-sex acts, passive or active, no matter who the partners are, were declared contrary to nature and punishable by death.
British Empire
The United Kingdom introduced anti-homosexuality laws throughout its colonies, particularly in the 19th century when the British Empire was at its peak. As of 2018, more than half of the 71 countries that criminalised homosexuality were former British colonies or protectorates.
Netherlands
In 2001, the Netherlands was the first country in the world to legalize gay marriage.
Global LGBT rights maps
Note that for simplicity the table below does not distinguish between 'legal' and 'lawful'. An action can only be legal or illegal where a specific law has been passed.
Laws regarding same-sex sexuality by country or territory
Restrictions of association with arrest or detention
Rings indicate local or case-by-case application. 1No imprisonment in the past three years or moratorium on law. 2Marriage not available locally. Some jurisdictions may perform other types of partnerships.
Note that while this template lists several historical countries, such as the Kingdom of France, Czechoslovakia, East Germany, etc., for the sake of clarity, the flags shown are contemporary flags.
LGBT-related laws by country or territory
Africa
List of countries or territories by LGBT rights in Africa
/ Ambiguous. Male de jure legal, but de facto illegal since 2000 Penalty: Up to 17 years imprisonment with or without hard labour and with or without fines under broadly-written morality laws.
Male illegal since 1861 (as the Sierra Leone Colony and Protectorate) Penalty: Up to life imprisonment (Not enforced, repeal disputed). Female always legal + UN decl. sign.
Male illegal since 1902 (as Protectorate) Female illegal since 2000 Penalty: Life imprisonment, Death penalty in some cases, Beatings, torture, or vigilante execution.
Constitutional ban since 2005
Indian Ocean states
LGBT rights in:
Same-sex sexual activity
Recognition of same-sex unions
Same-sex marriage
Adoption by same-sex couples
LGB people allowed to serve openly in military
Anti-discrimination laws concerning sexual orientation
Illegal since 1891 (as British Central Africa Protectorate) Penalty: Up to 14 years imprisonment, with or without corporal punishment for men up to 5 years imprisonment for women (repeal proposed)
Transgender people can change their gender and name without completion of medical intervention and human rights protections explicitly include gender identity or expression within all of Canada since 2017
/ Legal in Mexico City (2010), Coahuila (2014), Chihuahua (2015), Jalisco (2016), Michoacán (2016), Colima (2016), Morelos (2016), Campeche (2016), Veracruz (2016), Baja California (2017), Querétaro (2017), Chiapas (2017), Puebla (2017), Aguascalientes (2018), San Luis Potosi (2019), Hidalgo (2019), Yucatán (2021), Nayarit (2022), Quintana Roo (2022), Baja California Sur (2022), Durango, Tamaulipas, and Nuevo León (the latter three never had adoption bans)
(ambiguous)
Bans all anti-gay discrimination Pathologization or attempted treatment of sexual orientation by mental health professionals illegal in Mexico City (2020), México (2020), Baja California Sur (2020), Colima (2021), Tlaxcala (2021), Oaxaca (2021), Yucatán (2021), Zacatecas (2021), Baja California (2022), Hidalgo (2022), Jalisco (2022), Puebla (2022), Sonora (2022), Nuevo León (2022), Querétaro (2023), Sinaloa (2023), Quintana Roo (2023), and Morelos (2023)
/ Transgender persons can change their legal gender and name in Mexico City (2008), Michoacán (2017), Nayarit (2017), Coahuila (2018), Hidalgo (2019), San Luis Potosí (2019), Colima (2019), Baja California (2019), Oaxaca (2019), Tlaxcala (2019), Chihuahua (2019), Sonora (2020), Jalisco (2020), Quintana Roo (2020), Puebla (2021), Baja California Sur (2021), México (2021), Morelos (2021), Sinaloa (2022), Zacatecas (2022), Durango (2023), and Yucatán (2024)
/ Lesbians, gays, and bisexuals have been allowed to serve openly in the U.S. military since 2011, following the repeal of the Don't Ask, Don't Tell policy. Transgender people have been allowed to serve openly since 2021. "Transvestites" are currently banned from the military since 2012. Most openly Intersex people may be banned from the military under the Armed Forces ban of "hermaphrodites".
/ Transgender persons can change their legal name without surgeries or judicial permission since 2018. Legal gender cannot be changed. Sex indicator removed from all ID cards issued since May 2018 One-time sex change allowed for passports.
Transgender persons can change their legal gender and name without surgeries or judicial order since 2012
Transgender persons have a law reserving 1% of Argentina's public sector jobs. Economic incentives included in the new law aim to help trans people find work in all sectors.
Transgender people can change their legal gender and name before a notary without the need of surgeries or judicial order since 2018. The sex reassignment surgery, hormonal and psychological treatment are offered free of charge by the Brazilian Unified Health System (UHS)
Transsexual persons can change their registral sex and name since 1974. Transgender persons can change their registral sex and name, no surgeries or judicial order for adults above 18 years old since 2019.
Stepchild adoption since 2014; joint adoption since 2015
Since 1999
Bans all anti-gay discrimination
Since 2015, transgender persons can change their legal gender and name manifesting their solemn will before a notary, no surgeries or judicial order required
Legal since 1924; equal age of consent since 2012 + UN decl. sign.
/ Limited recognition for same-sex partners of health-care workers since 2020.
Since 2009
Bans all anti-gay discrimination
Transgender persons can change their legal gender and name without the need for the completion of medical intervention since 2016. Judicial order required.
Fully legal since 1993 Illegal de facto in Chechnya, where homosexuals are abducted and sent to concentration camps based on their perceived sexual orientation.
Constitutional ban since 2020
Gender change has not been legal since 2023
Central Asia
LGBT rights in:
Same-sex sexual activity
Recognition of same-sex unions
Same-sex marriage
Adoption by same-sex couples
LGBT people allowed to serve openly in military?
Anti-discrimination laws concerning sexual orientation
/ Ambiguous. Male de jure legal, but de facto illegal since 2000 Penalty: Up to 17 years imprisonment with or without hard labour and with or without fines under broadly-written morality laws.
Illegal Penalty: 74 lashes for immature men and death penalty for mature men (Although there are documented cases of minors executed because of their sexual orientation). For women, 100 lashes for women of mature sound mind and if consenting. Death penalty offense after fourth conviction.
Permitted by law since 2008, but in practice not possible in nearly every case
Since 1993; Includes transgender people
Bans all anti-gay discrimination
Almost full recognition of gender's ID without a surgery or medical intervention (Excluding changing gender and name in birth certificate) ; equal employment opportunity law bars discrimination based on gender identity
/ Ambiguous. Illegal under Article 534 of the Penal Code. Some judges have ruled not to prosecute individuals based on the law, however, this has not been settled by the Supreme Court and thus homosexuality is still illegal. However, a 2017 court ruling claims that it is legal, but the law against it is still in place. Penalty: Up to 1 year imprisonment (rarely enforced).
Legal gender change allowed, but sex reassignment surgery required
Illegal Penalty: Prison sentences of several months to life, fines, castration, torture or death can be sentenced on first conviction. A second conviction merits execution. Homosexuality itself, not just performed acts, can be considered illegal in Saudi Arabia.
Death, life in prison, floggings, fines, deportation, chemical castration, forced psychological treatments, honor killings, vigilante executions, beatings, forced anal examinations, forced hormone injections, and torture.
In September 2016, the Government passed Federal Decree No 4, a series of changes to reduce doctors' criminal liability. The new law allows doctors to perform medical intervention on intersex people so as to "correct" their sex, effectively removing either the male or female genitalia. Sex reassignment surgery remains illegal. Laws used to criminalize gender expression.
Illegal (codified in 1994) Penalty: Unmarried men punished with 100 lashes of the whip or a maximum of one year of imprisonment, stoning for adultery is not enforced. Women punished up to three years of imprisonment; where the offense has been committed under duress, the punishment is up to seven years detention.
South Asia
LGBT rights in:
Same-sex sexual activity
Recognition of same-sex unions
Same-sex marriage
Adoption by same-sex couples
LGBT people allowed to serve openly in military?
Anti-discrimination laws concerning sexual orientation
/ Discrimination based on sexual orientation and gender identity prohibited by court decision. No nationwide law.
A third gender option (hijra) besides male and female is available; transgender people have a constitutional right to change gender, only after medical/surgical intervention
/ Transgender people allowed to change legal gender, but only after sex reassignment surgery. However, it is difficult to change the gender information of educational attainments and academic degrees for lack of legal procedures, even after sex reassignment surgery, which has caused discrimination against well-educated trans women.
Illegal since 1871 Penalty: fines, prison sentence (2–20 years), or whippings.
LGBT individuals may adopt, but not same-sex couples
Generally impossible to change gender. However, a 2016 court ruling recognizes gender changes as fundamental constitutional rights Forms of gender expression are criminalized.
LGBT individuals may adopt, but not same-sex couples
Since 2009
/ Bans some anti-gay discrimination in certain cities and provinces, including the City of Manila,Cebu City, Quezon City, and Davao City; Nationwide anti-bullying law for basic education students.
Generally impossible to change legal gender. However in Cagandahan vs Philippines, allowed an intersex man to change his legal gender from female to male.
/ Stepchild adoption legal in 20/27 member states; joint adoption legal in 17/27 member states
Legal in all member states
Membership requires a state to ban discrimination based on person's sexual orientation in employment. 4/27 states ban some anti-gay discrimination. 23/27 states ban all anti-gay discrimination
/ Legal in 24/27 member states
Central Europe
LGBT rights in:
Same-sex sexual activity
Recognition of same-sex unions
Same-sex marriage
Adoption by same-sex couples
LGB people allowed to serve openly in military
Anti-discrimination laws concerning sexual orientation
Legal in East Germany since 1968 Legal in West Germany since 1969; equal age of consent since 1988 in East Germany and since 1994 in unified Germany + UN decl. sign.
Registered life partnerships from 2001 to 2017 (existing partnerships and new foreign partnerships still recognised)
Legal since 2017
Stepchild adoption since 2005; successive adoption since 2013; joint adoption legal since 2017
Legal since 1962 (As part of Czechoslovakia); equal age of consent since 1990 + UN decl. sign.
/ some limited rights for unregistered cohabiting same-sex couples since 2018; Limited residency rights for married same-sex couples since 2018 (Proposed)
Constitutional ban since 2014
LGBT individuals may adopt, but not same-sex couples
Legal nationwide since 1942 Legal in the cantons of Geneva (as part of France), Ticino, Valais, and Vaud since 1798; equal age of consent since 1990 + UN decl. sign.
Registered partnerships in Geneva (2001), Zürich (2003), Neuchâtel (2004) and Fribourg (2005) Nationwide since 2007
Legal since 2022
Stepchild adoption since 2018; joint adoption since 2022
Includes transgender people
Bans all anti-gay discrimination
Gender change is legal on simple declaration (self-determination +16 yo); surgery/sterilisation not required.
Eastern Europe
LGBT rights in:
Same-sex sexual activity
Recognition of same-sex unions
Same-sex marriage
Adoption by same-sex couples
LGB people allowed to serve openly in military
Anti-discrimination laws concerning sexual orientation
/ Banned from military service during peacetime, but during wartime homosexuals are permitted to enlist as partially able
/ (Highly bureaucratic, lengthy two-stage process: deciding body meets only twice a year; permission for medical or surgical interventions only at the second stage. Flaw in passport conversion whereby passport number may reveal former designation of sex to agencies.)
Male legal since 1993 Female always legal Illegal in practice in Chechnya, where homosexuals are abducted and sent to concentration camps based on their perceived sexual orientation.
Act on the elimination of discrimination bans all discrimination based on both gender identity and gender expression. Gender change is regulated by special policy issued by Ministry of Health.
Legal from 1858, when nominally a vassal of the Ottoman Empire to 1860, and again since 1994 (As part of Yugoslavia); equal age of consent since 2006 + UN decl. sign.
(Proposed)
Constitutional ban since 2006
LGBT individuals may adopt, but not same-sex couples
Bans all anti-gay discrimination
Legal after 1 year of hormone therapy, surgery no longer required since 2019
Legal since 1983; equal age of consent since 2012 + UN decl. sign.
Civil partnerships performed in the UK abroad recognised for succession purposes in inheritance and other matters respecting interests in property since 2012 Legal cohabitation since 2017
Legal since 2017 in Guernsey, since 2018 in Alderney, and since 2020 in Sark
Transgender people are allowed to change their legal gender and to have their new gender recognised as a result of the Gender Recognition Act 2009 (c.11)
Female always legal. Male legal in England and Wales since 1967, in Scotland since 1981, and in Northern Ireland since 1982; equal age of consent since 2001 + UN decl. sign.
Civil partnerships since 2005
Legal in England, Wales, and Scotland since 2014, and Northern Ireland since 2020
Legal in England and Wales since 2005, in Scotland since 2009 and Northern Ireland since 2013
Always legal for women. Male legal in some states and territories since 1975, nationwide since 1997. Tasmania was the last state to legalise male homosexuality; Equal age of consent in some states and territories since 1975, nationwide since 2016. + UN decl. sign.
Unregistered cohabitation since 2002; Civil unions since 2005
Legal since 2013
Legal since 2013
Since 1993; Includes transgender people
Bans all anti-gay discrimination
Covered under the "sex discrimination" provision of the Human Rights Act 1993; From July 2023, change of sex on a birth certificate by self-determination.
Melanesia
LGBT rights in:
Same-sex sexual activity
Recognition of same-sex unions
Same-sex marriage
Adoption by same-sex couples
LGBT people allowed to serve openly in military?
Anti-discrimination laws concerning sexual orientation