Uganda law header
Index Uganda Main Confidential

Uganda – Sexual Conduct Law

Criminal provisions, punishments, and historical context. For informational purposes only; not legal advice. Laws may change—verify with current official sources.

Overview

Uganda's sexual conduct laws are among the most restrictive in sub-Saharan Africa. The primary framework rests on the Penal Code Act (Cap. 120), originally enacted under British colonial rule in 1950 and substantially retained post-independence (1962). This has been supplemented and partially superseded by the Sexual Offences Act 2021, which modernised definitions of rape and sexual assault and introduced new protections. Most controversially, the Anti-Homosexuality Act 2023 (AHA 2023)—signed by President Museveni on 29 May 2023—dramatically escalated criminalisation of same-sex conduct and drew widespread international condemnation.

Uganda is also party to several international treaties that impose obligations it has only partially fulfilled. The intersection of colonial-era criminal law, conservative evangelical Christian influence on legislation, and weak enforcement of gender-based violence protections creates a complex and often contradictory legal landscape.

Age of Consent

The age of consent is 18 years, codified in the Sexual Offences Act 2021 and earlier Penal Code provisions:

Key Offences & Penalties

Offence Legal Basis Penalty
Rape Sexual Offences Act 2021 s.3; Penal Code s.123 Minimum 15 years; life imprisonment if aggravated (weapon, multiple perpetrators, HIV-positive offender, victim under 18)
Defilement (sexual act with person under 18) Sexual Offences Act 2021 s.5; Penal Code s.129 Minimum 15 years; life imprisonment if victim under 14 or in aggravated circumstances
Aggravated defilement Penal Code s.129(3) Death penalty (in cases where offender is HIV-positive, victim under 14, or serial offence)
Sexual assault / indecent assault Sexual Offences Act 2021 s.4 Minimum 10 years; life if aggravated
Homosexual acts ("same-sex sexual acts") Anti-Homosexuality Act 2023 s.2 Up to 10 years' imprisonment
Aggravated homosexuality Anti-Homosexuality Act 2023 s.3 Life imprisonment (where victim is under 18, person with disability, offender is HIV-positive, or in position of authority)
Attempted aggravated homosexuality Anti-Homosexuality Act 2023 s.4 Up to 14 years
Promoting / abetting homosexuality Anti-Homosexuality Act 2023 s.9–11 Up to 20 years; organisations facilitating same-sex activity face revocation of licences
Procuring / living on earnings of prostitution Penal Code s.136–139 Up to 7 years; aggravated to life if involving minors or trafficking
Trafficking in persons for sexual exploitation Prevention of Trafficking in Persons Act 2009 15 years to life; death if victim dies
Sexual harassment Equal Opportunities Commission Act; Employment Act 2006 Civil and criminal remedies; up to 2 years under Employment Act
Indecent exposure / public obscenity Penal Code s.166–168 Up to 1 year + fine
Domestic violence / spousal abuse Domestic Violence Act 2010 Up to 8 years; civil protection orders available; marital rape not yet separately codified
Female genital mutilation Prohibition of Female Genital Mutilation Act 2010 Up to 10 years; life imprisonment if victim dies; up to 5 years for aiding
Child marriage facilitation Marriage Act 2017; Children Act (Cap. 59) Criminal liability for facilitators; up to 2 years
Pornography (distribution, production) Anti-Pornography Act 2014 Up to 10 years and/or fine; confiscation of material and equipment

Sexual Offences Act 2021 — Key Reforms

The Sexual Offences Act 2021 (assented to 14 May 2021) represented a significant modernisation of Uganda's sexual violence law framework:

Marital Rape

As of 2026, marital rape is not explicitly codified as a criminal offence in Uganda. The Sexual Offences Act 2021 contains general consent provisions that could theoretically apply within marriage, but no successful marital rape prosecution has been documented. The Domestic Violence Act 2010 provides some overlapping protection through its broad definition of "domestic violence" including sexual violence. The CEDAW Committee and Uganda's own Law Reform Commission have both recommended explicit criminalisation; no bill has passed as of 2026.

Female Genital Mutilation

Uganda enacted the Prohibition of Female Genital Mutilation Act 2010, one of the first standalone FGM prohibition laws in East Africa:

Anti-Pornography Act 2014

The Anti-Pornography Act 2014 has a broad scope and has been applied in ways that affect ordinary social conduct:

Historical & Colonial Context

Uganda was a British Protectorate from 1894 until independence on 9 October 1962. The Penal Code enacted in 1950 drew directly from colonial codes applied across British East Africa, themselves derived from the Indian Penal Code 1860 (drafted under British India). Key historical features:

International Obligations & Treaty Compliance

Uganda is a State Party to:

The AHA 2023 is widely considered incompatible with Uganda's obligations under the ICCPR (International Covenant on Civil and Political Rights, ratified 1995), ICESCR, and the African Charter. The UN Human Rights Committee and multiple UN Special Rapporteurs have formally stated this position.

Academic & Expert Commentary

"The 2023 Act goes beyond criminalising conduct—it criminalises identity, association, and advocacy, creating a chilling effect on civil society far broader than its explicit text." — International human rights law scholar, 2023
"The Sexual Offences Act 2021 is a genuine improvement on decades-old colonial law, but the marital rape gap and enforcement deficits mean women's protection on paper differs dramatically from reality." — Ugandan women's rights advocate, 2024
"The evangelical influence on Uganda's sexual legislation represents a documented and internationally funded campaign that has reshaped the legal environment; it is not simply an indigenous conservative tradition." — Political scientist, Makerere University, 2022

References

Republic of Uganda. Penal Code Act (Cap. 120) (as amended). Uganda Legal Information Institute (ULII). https://ulii.org/

Republic of Uganda. Sexual Offences Act 2021. Uganda Gazette.

Republic of Uganda. Anti-Homosexuality Act 2023. Uganda Gazette, 29 May 2023.

Republic of Uganda. Domestic Violence Act 2010.

Republic of Uganda. Prohibition of Female Genital Mutilation Act 2010.

Republic of Uganda. Prevention of Trafficking in Persons Act 2009.

Republic of Uganda. Anti-Pornography Act 2014.

Republic of Uganda. Marriage Act 2017.

Human Rights Watch. (2023). Uganda: Anti-Homosexuality Act — Impact and Enforcement. https://www.hrw.org/

Amnesty International. (2023). Uganda: AHA 2023 Deeply Alarming. https://www.amnesty.org/

ILGA World. (2024). State-Sponsored Homophobia Report. https://ilga.org/

UNICEF. (2023). Female Genital Mutilation/Cutting: Uganda Country Profile. https://www.unicef.org/

UNAIDS. (2024). Uganda HIV Country Factsheet. https://www.unaids.org/

UN CEDAW Committee. (2022). Concluding Observations: Uganda. United Nations.

ICC. (2021). Prosecutor v. Dominic Ongwen: Trial Judgment. ICC-02/04-01/15.

Kaoma, K. (2012). Colonizing African Values: How the U.S. Christian Right Is Transforming Sexual Politics in Africa. Political Research Associates.

Tamale, S. (2011). African Sexualities: A Reader. Pambazuka Press.

U.S. Department of State. (2026). Uganda Travel Advisory. https://travel.state.gov/