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:
- Section 3 of the Sexual Offences Act 2021 defines rape as including sexual intercourse with a person under 18, regardless of purported consent.
- The Penal Code previously set the age at 18 for girls under defilement provisions (s.129), which carried mandatory minimum sentences.
- The Sexual Offences Act 2021 harmonised and expanded protections to be gender-neutral in most provisions.
- Child marriage: Uganda's Marriage Act 2017 sets the minimum marriage age at 18 for both sexes, aligning with the consent age. Earlier customary and religious marriage frameworks that permitted earlier marriage have been formally superseded, though enforcement in rural areas is inconsistent.
- Defilement (sexual activity with a minor under 18) carries a minimum sentence of 15 years, rising to life imprisonment in aggravated circumstances.
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:
- Gender-neutral rape definition: Rape is no longer limited to male-on-female acts; any person can be a perpetrator or victim.
- Expanded consent definition: Lack of consent is defined to include situations of force, threat, incapacity (intoxication, unconsciousness, sleep), abuse of authority, and submission due to fear.
- Minimum sentencing: Introduced mandatory minimums of 15 years for rape and defilement to address judicial leniency.
- Victim protections: In-camera hearings, anonymity orders, and prohibition on questioning victims about prior sexual history.
- Spousal rape gap: The Act still does not explicitly criminalise marital rape as a standalone offence—a significant gap criticised by CEDAW and domestic civil society.
- Electronic evidence: Digital evidence (messages, images) is admissible in sexual offence prosecutions.
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:
- Penalties: up to 10 years' imprisonment; life imprisonment if the victim dies as a result; up to 5 years for aiding, abetting, or attempting FGM.
- Aggravated offence if performed on a person under 18 or without consent.
- National prevalence: approximately 1% nationally (UNICEF 2023), but concentrated among the Sebei/Sabiny community in eastern Uganda (Kapchorwa, Kween, Bukwo districts), where prevalence historically exceeded 50%.
- Enforcement has led to notable prosecutions; community abandonment programmes run by MIFUMI and REACH Uganda have been documented as partially effective.
Anti-Pornography Act 2014
The Anti-Pornography Act 2014 has a broad scope and has been applied in ways that affect ordinary social conduct:
- Defines pornography broadly to include "any representation through publication, broadcast, transmission, dissemination, distribution, circulation, sale, import or export" of sexual material.
- The Uganda Pornography Control Committee is empowered to investigate and prosecute.
- In practice, the Act has been used to police women's dress codes—so-called "miniskirt" enforcement actions in Kampala (2014–2015) attracted international criticism.
- Penalties: up to 10 years and/or fine; equipment confiscated.
- Child pornography carries separate and heavier penalties under the Children Act and Sexual Offences Act.
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:
- Colonial sodomy law: Section 145 of the Penal Code criminalised "carnal knowledge against the order of nature," derived directly from British law. This provision served as the basis for anti-homosexuality prosecution prior to the 2023 Act and remains in the statute books alongside it.
- Pre-colonial Buganda Kingdom customary law: The Buganda Kingdom (dominant pre-colonial polity in southern Uganda) had documented customary sanctions for sexual offences under the Lukiiko (parliament) and clan elder systems. Adultery, rape, and abduction were punishable by fines, corporal punishment, or death depending on the social status of the parties. The Kabaka (king) could impose capital punishment for offences against royal family members.
- Idi Amin era (1971–1979): Sexual violence was used as a tool of political terror; systematic rape and sexual torture of perceived opponents was documented by human rights investigators. No legal accountability was achieved domestically.
- HIV/AIDS crisis (1980s–1990s): Uganda was among the first countries to face a catastrophic HIV epidemic; government responses including the "ABC" campaign (Abstinence, Be faithful, use Condoms) shaped sexual public health discourse and law for decades.
- Lord's Resistance Army conflict (1987–2006): The LRA used systematic sexual enslavement, forced marriage, and sexual violence as instruments of war in northern Uganda; ICC indictments of LRA leadership include charges of sexual violence as a crime against humanity.
- Evangelical influence on legislation: From the 2000s onward, American evangelical organisations (including The Family/C Street and others) played a documented role in supporting Ugandan legislators who drafted successive anti-homosexuality bills, drawing extensive journalistic and academic scrutiny.
International Obligations & Treaty Compliance
Uganda is a State Party to:
- UN Convention on the Rights of the Child (CRC) — ratified 1990; defilement law and child marriage reforms partially compliant; FGM law compliant.
- CEDAW — ratified 1985; CEDAW Committee has cited marital rape gap, child marriage enforcement, and FGM persistence as areas of non-compliance.
- African Charter on Human and Peoples' Rights — ratified 1986; African Commission has received communications regarding AHA 2023.
- Maputo Protocol — ratified 2010; FGM law compliant; marital rape gap remains a non-compliance issue.
- Palermo Protocol (Trafficking) — ratified 2002; anti-trafficking law enacted 2009.
- Rome Statute (ICC) — ratified 2002; Uganda has cooperated with ICC on LRA prosecutions, though Dominic Ongwen's 2021 conviction for sexual violence crimes under ICC jurisdiction remains the primary outcome.
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/