Restrictions of association with arrests or detention
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 May 2024[update], 37 countries recognize same-sex marriage.[1][2] 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.[3][4][5][6] 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.[7][8] LGBT people also face extrajudicial killings in the Russian region of Chechnya.[9]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).[10][11][12][13][14]
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.[20][21] 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.[22]
Ancient Israel
The ancient Law of Moses (the Torah) forbids people from lying with people of the same sex (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"[23][24] 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.[25][26] In Deuteronomy 22:5, cross-dressing is condemned as "abominable".[27][28]
Assyria
In Assyrian society, sex crimes were punished identically whether they were homosexual or heterosexual.[29] 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.[29] 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".[30][31] However, homosexual relationships with fellow soldiers, slaves, royal attendants, or those where a social better was submissive or penetrated, were treated as bad omens.[32][33]
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."[34][35] 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.[36]
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.[37] 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.[38] 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.[39]
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.[40] 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.[41] 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.[42]
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,[43] as a violation of military discipline.[44] The Greek historian Polybius (2nd century BC) lists deserters, thieves, perjurers, and "...on young men who have abused their persons" as subject to the fustuarium, clubbing to death.[45] 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.[46] Soldiers were free to have relations with their male slaves;[47] the use of a fellow citizen-soldier's body was prohibited, not homosexual behaviors per se.[48] 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.[49]
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.[50] 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.[51]
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.[52] "Death by sword" was the punishment for a "man coupling like a woman" under the Theodosian Code.[53] Under Justinian, all same-sex acts, passive or active, no matter who the partners are, were declared contrary to nature and punishable by death.[54]
The United Kingdom introduced anti-homosexuality laws throughout its colonies, particularly in the 19th century when the British Empire was at its peak.[55] As of 2018, more than half of the 71 countries that criminalised homosexuality were former British colonies or protectorates.[56]
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 arrests or detention
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.
When a country has decriminalized, re-criminalized, and decriminalized again (e.g. Albania, Bulgaria, Spain, republics of the Soviet Union) only the later decriminalization date is included. Countries which have decriminalized and since re-criminalized (e.g. Iraq) are excluded.
Illegal since 1966 Penalty: Up to 3 years imprisonment with fines up to 10,000 dinars.[65] Torture,[66] beatings,[67] or vigilante executions are also common.
/ 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.[68][76]
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.[68]
Illegal since 1864 (only Zanzibar) Illegal since 1899 Penalty: Up to life imprisonment.[68][97] Vigilante executions, beatings and torture[134][135] are also tolerated.
Male illegal since 1902 (as Protectorate) Female illegal since 2000 Penalty: Life imprisonment, Death penalty in some cases, Beatings, torture, or vigilante execution. [136][137]
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
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[173][174][175][176]
/ Legal in Mexico City (2010),[186] 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), Zacatecas (2023), Tabasco (2024), Durango, Tamaulipas, and Nuevo León (the latter three never had adoption bans)[187][188]
(ambiguous)
Bans all anti-gay discrimination[189]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), Morelos (2023), Guerrero (2024), and nationwide (2024).
/ Transgender persons can change their legal gender and name in Mexico City (2008),[190] 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), Yucatán (2024), and Campeche (2024). [191]
/ 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.[196] "Transvestites" are currently banned from the military since 2012.[197] Most openly Intersex people may be banned from the military under the Armed Forces ban of "hermaphrodites".[197]
/ 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[207][208][209] One-time sex change allowed for passports. [210]