Where is homosexuality illegal
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 17, 2026
Key Facts
- 64 countries criminalize homosexuality as of 2024, per Equaldex data
- 7 countries allow the death penalty for same-sex activity: Iran, Saudi Arabia, Yemen, Nigeria (in some states), Somalia, Afghanistan, and Brunei
- Uganda passed the Anti-Homosexuality Act in 2023, imposing life imprisonment for 'aggravated homosexuality'
- The number of anti-LGBTQ+ laws has increased since 2010, with 15 new criminalizing measures enacted between 2020–2023
- Only 33% of countries globally recognize same-sex relationships in some legal form
Overview
Homosexuality remains a criminal offense in numerous countries across Africa, the Middle East, and parts of Asia and the Caribbean. Legal penalties range from fines and imprisonment to corporal punishment and execution. International human rights organizations continue to condemn these laws as violations of fundamental freedoms.
Enforcement varies significantly—some nations rarely prosecute, while others actively target LGBTQ+ individuals. Social stigma, lack of legal protections, and state-sponsored discrimination compound risks for queer communities in these regions.
- 64 countries criminalize consensual same-sex relations as of 2024, according to the Equaldex LGBTQ+ Rights Index, reflecting a slight increase from 60 in 2010.
- Iran, Saudi Arabia, Yemen, Nigeria (in northern states), Somalia, Afghanistan, and Brunei legally permit the death penalty for same-sex sexual acts, though execution is rare outside Iran and Somalia.
- Uganda's 2023 Anti-Homosexuality Act imposes life imprisonment for 'aggravated homosexuality,' including same-sex relations involving people with HIV or minors.
- 20 countries are located in sub-Saharan Africa, where colonial-era laws, such as Section 377 of the penal code, remain in force in nations like Kenya and Tanzania.
- 11 Caribbean nations, including Jamaica and Barbados, still enforce colonial-era statutes criminalizing 'buggery,' though some, like Antigua and Barbuda, have seen court challenges since 2022.
How It Works
Laws criminalizing homosexuality operate through vague or outdated statutes that prohibit 'unnatural offenses,' 'sodomy,' or 'indecency between males.' These laws are often rooted in colonial legal systems and selectively enforced.
- Anti-sodomy laws: These statutes, such as Section 377 inherited from British colonial rule, criminalize 'carnal intercourse against the order of nature' and are used to target gay men in countries like Malaysia and Bangladesh.
- Public indecency charges: In nations without explicit anti-homosexuality laws, authorities often arrest LGBTQ+ individuals under broad public order or morality statutes, as seen in Lebanon and Kuwait.
- Death penalty provisions: In Iran and Saudi Arabia, same-sex relations can be prosecuted under Sharia law, leading to execution by stoning or hanging, though most death sentences are commuted.
- Conversion therapy: In countries like Indonesia and parts of Nigeria, state-sanctioned or religious programs attempt to 'cure' homosexuality, despite being condemned by the World Health Organization.
- Anti-LGBTQ+ propaganda laws: Russia and Hungary enforce bans on 'promoting non-traditional sexual relations,' restricting LGBTQ+ visibility and education, with penalties up to $14,000 in fines.
- Marriage and adoption bans: Over 130 countries do not recognize same-sex marriage, and many explicitly ban LGBTQ+ individuals from adopting children, such as in Poland and Latvia.
Comparison at a Glance
Legal status of homosexuality varies widely by region, as shown in the table below:
| Region | Countries with Anti-LGBTQ+ Laws | Maximum Penalty | Recent Changes |
|---|---|---|---|
| Middle East | 12 | Death penalty (Iran, Saudi Arabia) | None; increased repression in UAE (2023) |
| Sub-Saharan Africa | 31 | Life imprisonment (Uganda, Tanzania) | Uganda’s 2023 law expanded penalties |
| Asia | 15 | Death penalty (Brunei, Afghanistan) | India decriminalized in 2018; Nepal recognizes same-sex unions |
| Caribbean | 11 | Life imprisonment (Jamaica) | Barbados and Antigua ruled colonial laws unconstitutional in 2022 |
| Europe | 2 (Russia, Belarus) | Administrative detention, fines | Russia expanded 'gay propaganda' law in 2022 |
While Western Europe and the Americas have trended toward decriminalization, Eastern Europe and Central Asia have seen rising anti-LGBTQ+ sentiment. Russia’s 2022 expansion of its 'gay propaganda' law and Hungary’s constitutional ban on same-sex adoption reflect a growing backlash in some regions, despite global progress in LGBTQ+ rights.
Why It Matters
Understanding where homosexuality is illegal is crucial for human rights advocacy, travel safety, asylum policies, and international diplomacy. These laws perpetuate systemic discrimination, endanger lives, and hinder public health efforts, particularly in HIV prevention.
- Asylum claims: LGBTQ+ individuals from countries like Iran and Uganda increasingly seek asylum in Canada, Germany, and the U.S., citing credible fear of persecution.
- Public health impact: Fear of prosecution deters LGBTQ+ people from accessing HIV testing and treatment in nations like Nigeria and Malaysia.
- Travel risks: U.S. State Department and UK Foreign Office issue travel advisories for countries where homosexuality is illegal, warning of arrest or violence.
- Corporate policies: Multinational companies like Apple and Google restrict employee travel to regions with anti-LGBTQ+ laws to protect staff.
- International pressure: The U.S. and EU have withheld aid from countries like Tanzania and Malawi over LGBTQ+ rights violations.
- Legal progress: Courts in Botswana, India, and Ecuador have recently struck down anti-homosexuality laws, signaling potential for broader reform.
Despite ongoing repression in many nations, global momentum toward LGBTQ+ equality continues, driven by local activism, international advocacy, and landmark court rulings. Monitoring legal changes remains essential for protecting vulnerable populations worldwide.
More Where Is in Law
Also in Law
More "Where Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- WikipediaCC-BY-SA-4.0
Missing an answer?
Suggest a question and we'll generate an answer for it.