Dozens of countries still criminalise consensual same-sex intimacy. The penalties range from fines and prison sentences to flogging, life imprisonment and, in some jurisdictions, death.

In June 2026, ILGA World reported that 65 United Nations member states criminalised consensual same-sex sexual acts, including countries where authorities use other laws to prosecute people in practice. The legal picture has shifted since that snapshot. Niger’s new penal code explicitly criminalises same-sex relations, while Trinidad and Tobago’s final court of appeal struck down laws criminalising private, consensual same-sex activity between adults on 10 November 2026.

Many of these laws use terms such as ‘buggery’, ‘gross indecency’ or ‘unnatural offences’. Some criminalise intimacy between men specifically, while others also apply to women. The tables below cover penalties for consensual same-sex activity and flag where the rules vary within a country.

Where the death penalty is prescribed in law

ILGA World identifies seven UN member states where the death penalty is prescribed for certain offences involving same-sex sexual acts. Eligibility for a death sentence and actual enforcement vary by jurisdiction.

CountryWhen the death penalty applies
BruneiThe Syariah Penal Code provides for death by stoning for certain acts between men, subject to strict evidential requirements. An execution moratorium is in place.
IranCertain sexual acts between men can carry the death penalty under the penal code.
MauritaniaThe penal code prescribes death by stoning for certain acts between adult Muslim men. The country has a longstanding moratorium on executions.
NigeriaIn 12 northern states, Sharia criminal laws provide for the death penalty in certain cases. Federal law provides for imprisonment.
Saudi ArabiaCourts can impose the death penalty under the country’s application of Islamic law.
UgandaThe Anti-Homosexuality Act provides for the death penalty for the specific offence of ‘aggravated homosexuality’. The general offence carries up to life imprisonment.
YemenThe penal code provides for death by stoning in certain cases involving sex between men.

Five countries where the legal position is uncertain

ILGA World lists Afghanistan, Pakistan, Qatar, Somalia and the United Arab Emirates as countries where there is no full legal certainty about whether the death penalty applies to consensual same-sex acts. In Somalia, the legal position varies with territorial control. Human Dignity Trust reports that the death penalty has been implemented in areas under armed-group control.

Where same-sex activity can carry life imprisonment

Outside the death-penalty groups above, laws in Bangladesh, Guyana, Sierra Leone, Sudan, Tanzania, The Gambia and Zambia provide for life imprisonment in certain cases. In Sudan, life imprisonment can apply for a third conviction under the relevant law. The country removed the death penalty for the offence in 2020.

Criminalisation and penalties by region

The tables below give the reported upper prison terms or sentencing ranges for the relevant offences, with qualifications where local laws, court rulings or repeat convictions affect the penalty. The countries covered above appear again only where needed to explain the regional picture.

Africa

CountryReported penalty
AlgeriaUp to 3 years and a fine
Burkina Faso2 to 5 years and a fine for a first offence. Repeat offences carry double penalties.
BurundiUp to 2 years and a fine
CameroonUp to 5 years and a fine
ChadUp to 2 years and a fine
ComorosUp to 5 years and a fine
EgyptUp to 3 years and a fine under laws used to prosecute same-sex activity
EritreaUp to 3 years
EswatiniImprisonment under common law, with no clearly specified maximum
EthiopiaUp to 1 year for the basic offence
GhanaUp to 3 years under the existing provision on same-sex activity
GuineaUp to 3 years and a fine
KenyaUp to 14 years
LiberiaUp to 1 year
LibyaUp to 5 years
MalawiUp to 14 years, with corporal punishment also provided for in law
MaliUp to 7 years and a fine
MoroccoUp to 3 years and a fine
NigerApproximately 5 to 10 years and a fine, according to reports on the new code
SenegalUp to 10 years and a fine
South SudanUp to 14 years and a fine
TogoUp to 3 years and a fine
TunisiaUp to 3 years
ZimbabweUp to 1 year and a fine

Senegal doubled its maximum prison term for consensual same-sex acts from five to ten years in March 2026. In Niger, reported penalties of up to 20 years apply to separate offences, including same-sex marriage and certain roles in LGBTQ+ organisations. Human Dignity Trust’s Niger profile remains provisional pending access to the full penal code.

Asia and the Middle East

Country or territoryReported penalty
IndonesiaIn Aceh, provincial law provides for up to 100 lashes or imprisonment for certain same-sex acts. A separate national law penalises sex outside marriage.
Iraq10 to 15 years
KuwaitUp to 7 years
LebanonUp to 1 year under Article 534. Several courts have held that the provision does not cover consensual same-sex activity, but prosecution remains possible.
MalaysiaUp to 20 years and whipping
MaldivesUp to 8 years. An additional punishment of 100 lashes can be imposed under Sharia law.
MyanmarUp to 10 years’ imprisonment. Section 377 also retains historical wording providing for ‘transportation for life’.
OmanUp to 3 years
Palestinian territoriesUp to 10 years in Gaza under an inherited criminal provision. The legal position differs in the West Bank.
Sri LankaUp to 10 years and a fine
SyriaUp to 3 years
TurkmenistanUp to 2 years
UzbekistanUp to 3 years

Indonesia’s national criminal code took effect on 2 January 2026. It provides for up to one year in prison for sex outside marriage. That provision can affect same-sex couples because they cannot legally marry in Indonesia. Aceh has its own explicit prohibition and has enforced it through public caning.

The Caribbean and South America

CountryReported maximum penalty
Grenada10 years
GuyanaLife imprisonment
Jamaica10 years with hard labour
Saint Vincent and the Grenadines10 years

In Trinidad and Tobago, the Judicial Committee of the Privy Council ruled in favour of LGBTQ+ campaigner Jason Jones on 10 November 2026. The ruling struck down the laws as they applied to private, consensual sexual activity between adults of the same sex. A 2025 appeal ruling had previously reinstated criminal penalties.

The Pacific

CountryReported maximum penalty
Kiribati14 years
Papua New Guinea14 years
Samoa5 years
Solomon Islands14 years
Tonga10 years
Tuvalu14 years

Several of these provisions were inherited from colonial criminal codes. Papua New Guinea, for example, retained offences drawn from the criminal law Australia administered before independence.

Why these laws still matter

Many criminal prohibitions date back to colonial rule. Others have been introduced or expanded recently, as in Burkina Faso, Mali, Niger and Senegal. Trinidad and Tobago’s November judgement shows how litigation can remove longstanding restrictions, even after an earlier victory has been reversed.

The maximum sentence tells only part of the story. Even where prosecutions are infrequent, criminal laws can expose LGBTQ+ people to arrest, blackmail and harassment. Countries can also restrict Pride events, LGBTQ+ organisations and public expression while allowing consensual same-sex intimacy in private.

Sources and further reading

By Newsdesk

The news team for THEGAYUK. Got tips? Go to www.thegayuk.com/newsdesk to tell us something.

Leave a Reply

Your email address will not be published. Required fields are marked *