Chic African Culture Africa Factbook

Illegal to be LGBTQ+ in Africa

Written law listing in Africa where it is illegal to be LGBTQ+, not including oral or customary law which are passed down codes.

Below are the written statute laws penalties and definitions passed by 54 African countries against LGBTQ+ persons or anyone having knowledge, and promoting acts.

Five African countries have no written laws enacted by the government on the LGBTQ+ community, they are Burkina Faso, Côte d’Ivoire, Madagascar, Mali and Rwanda. Cabo Verde, ESwatini, Gabon, Guinea Bissau, São Tomé e Príncipe does not criminalize homosexual acts.

Laws prohibiting sodomy of any form including the crime of Buggery exist in the penal codes of 16 African countries; Botswana, Ghana, Kenya, Lesotho, Mauritius, Namibia, Seychelles, Sierra Leone, South Africa, South Sudan, Sudan, Tanzania, Tunisia, Uganda, Zambia and Zimbabwe. 

Chad and Republic of the Congo no information found. Many African countries specify in State Statues prohibiting male homosexual conduct only, aggravated homosexuality, anyone who intentionally and publicly promotes homosexuality, internet porn and anyone who has carnal knowledge of any person against the order of nature.

  Illegal to be Gay in Africa

African county listing of LGBTQ+ statute law penalties and definitions. This list does not contain oral or customary law.


Algeria
Any person guilty of a homosexual act is punished with a term of imprisonment of between two months and two years and a fine of between US $6.40–$25.60.


Angola
The Angolan Penal Code is silent with regard to the criminalization of homosexuality. However, article 71(4) determines that security measures are applicable to people who habitually practice acts against nature.” Article 70 of the Penal Code lists the security measures, which include confinement in an insane asylum; confinement in a workhouse or agricultural colony; probation; pledge of good conduct; and disqualification from the practice of a profession. According to the Angolan Ministry of Justice, a proposal for a new Penal Code will be sent to the Council of Ministers in March 20143 that would no longer have these provisions.


Benin
Article 88 of the 1996 Penal Code punishes homosexual acts with one to three years of imprisonment and a fine of about US $210–$1,050. However, it appears that no one has ever been convicted under this law.


Botswana
Some homosexual acts are illegal. The Botswana Penal Code provides that any person who has carnal knowledge of any person against the order of nature or permits any other person to have carnal knowledge of him or her against the order of nature, is guilty of an offence and is liable to imprisonment for a term not exceeding seven years. Attempt is also an offense, and punishable on conviction with up to five years in prison. However, in order for carnal knowledge (sexual intercourse) to be against the order of nature, there must be anal penetration by a sex organ. Therefore, while sodomy of any form, whether it involves a heterosexual or homosexual couple is an offense under this provision, a homosexual sexual act that does not involve anal penetration with a sex organ may be legal.


Burkina Faso
No laws against homosexual relations.


Burundi
A 2009 revision of the Penal Code made homosexual relations punishable by three months to two years of imprisonment and/or by a fine of about US $33– $66.


Cameroon
Same-sex sexual intercourse is punishable by six months to five years of imprisonment, and a fine of about US $42–$419.


Cabo Verde
The Cape Verdean Penal Code does not criminalize homosexual acts.


Central African Republic
Public expression of love between persons of the same sex is punishable by six months to two years of imprisonment, or a fine of  US 150,000–600,000. However, this law does not seem to be enforced by the police.


Chad
No information found.


Democratic Republic of the Congo
Homosexual acts are not explicitly illegal, but article 172 of the Penal Code, which prohibits violations of morality under penalty of up to five years of imprisonment, could be used against gay and lesbian individuals.


Republic of the Congo
No information found.


Côte d’Ivoire
No laws against homosexual relations.


Djibouti
Homosexual acts appear to be legal, as there does not seem to be any provision of the Penal Code of Djibouti dealing with these issues.


Egypt
Homosexuality is punished as a scandalous act, with detention for up to one year and/or a fine of up to about US$43.


Eritrea
Homosexuality is illegal. Eritrean law states that a person who “performs with another person of the same sex an act corresponding to the sexual act, or any indecent act, is punishable with simple imprisonment.” The terms “sexual act” and “indecent act” are not defined. When a person is convicted under this provision, the court has the discretion to impose a sentence ranging from ten days to three years of imprisonment.


Eswatini

No primary source on the legal status of homosexuality or homosexual conduct was located. Secondary sources indicate that sodomy is a common-law crime in Eswatini. No information regarding the penalties imposed for this offense was located.


Ethiopia
Homosexuality is illegal. The country’s law states that “whoever performs with another person of the same sex a homosexual act, or any other indecent act, is punishable with simple imprisonment.” The law does not provide definitions of the terms “homosexual act” and “indecent act.” Although simple imprisonment generally entails a prison sentence ranging from ten days to three years, courts are authorized to impose higher sentences up to five years of imprisonment in cases of recidivism.


Gabon
Homosexual acts appear to be legal, as there does not seem to be any provision of the Gabonese Penal Code dealing with these issues.


The Gambia
Homosexuality is illegal. The country’s Criminal Code states that a person who has carnal knowledge of any person against the order of nature or permits any person to have carnal knowledge of him or her against the order of nature commits a felony known as unnatural offense, and on conviction is punishable by a fourteen-year prison term. An attempt to commit an unnatural offense is also a felony, on conviction, punishable by seven years of imprisonment. In addition, the Code criminalizes what it calls indecent practices: anyone who“commits an act of gross indecency with another in public or in private or procures or “attempts to procure another to commit such act with him/herself or with another person commits a felony, and on conviction is punishable by a five- year prison term. 


Ghana
Ghana criminalizes sodomy. Under this country’s law, a person who has unnatural carnal knowledge of  another person of not less than sixteen years of age with the consent of that other person commits a misdemeanor, an offense punishable on conviction by a maximum three-year prison term. Unnatural carnal knowledge involves sexual intercourse with a person in an unnatural manner and requires the least degree of penetration.


Guinea
Article 325 of the Penal Code punishes homosexual acts with six months to three years of imprisonment, and a fine of about US$14–$143.


Guinea Bissau
The Penal Code of Guinea Bissau does not criminalize homosexual acts.


Kenya
Kenya’s Penal Code criminalizes sodomy. Under this law, a person who has carnal knowledge of any person against the order of nature or permits a male person to have carnal knowledge of him or her against the order of nature commits a felony, punishable on conviction by a fourteen- year prison term. An attempt to commit an unnatural offense, also a crime, is , punishable on conviction by a seven-year prison term.


Lesotho
Sodomy appears to be a common-law crime in Lesotho. Under the country’s Criminal Procedure and Evidence Act, sodomy is one of the offenses for which a person may be arrested without a warrant.


Liberia
Liberia criminalizes homosexual acts. It makes engaging in voluntary deviate sexual intercourse by any person a first-degree misdemeanor, an offense punishable by up to one year in prison. The term deviate sexual intercourse includes sexual contact between human beings who are not husband and wife or living together as man and wife though not legally married, consisting of contact between the penis and the anus, the mouth and the penis, or the mouth and vulva. A sexual contact involves touching of the sexual or other intimate parts of a person for the purpose of arousing or gratifying a sexual desire.


Libya
Homosexuality is punished under the Penal Code provision on extramarital sexual relationships. When consensual, such relationships are punished with imprisonment for up to five years.


Madagascar
No laws against homosexual relations.


Malawi
Malawi criminalizes homosexuality. Anyone who “has carnal knowledge of any person against the order of nature or permits a male person to have carnal knowledge of him or her against the order of nature commits an unnatural offence, a felony, on conviction, punishable by a fourteen- year prison term. Attempting to commit an unnatural offence, also a felony, is punishable on conviction by a seven- year prison term. In addition, Malawi criminalizes what it calls indecent practices. Anyone who commits an act of gross indecency with another in public or in private or procures or attempts to procure another to commit such act with him/herself or with another person commits a felony and is, on conviction, punishable by a five-year prison term. 


Mali
No laws against homosexual relations.


Mauritania
Article 308 of the Mauritanian Penal Code punishes homosexual acts by Muslim men with death by stoning. Homosexual acts by two women are punished with three months to two years of imprisonment and a fine of about US$17– $207.


Mauritius
The Criminal Code of Mauritius criminalizes sodomy, stating that any person who is guilty of the crime of sodomy shall be liable to penal servitude not exceeding 5 years.


Morocco
Under the Penal Code, any person who commits lewd or unnatural acts with an individual of the same sex shall be punished with a term of imprisonment of between six months and three years and a fine of about US$14.63–$121.94, unless the facts of the case constitute aggravating circumstances.


Mozambique
The Mozambican Penal Code is silent in regard to criminalization of homosexuality. However, article 71(4) determines that security measures are applicable to people who habitually practice “acts against nature.” Article 70 of the Penal Code lists the security measures, which include confinement in an insane asylum, confinement in a workhouse or agricultural colony, probation, pledge of good conduct, and/or disqualification from the practice of a profession. According to the Mozambican government, on December 18, 2013, the Parliament approved by consensus a general draft revision of the Penal Code. It was not possible to determine, however, whether the mentioned provisions were altered.


Namibia
It appears that Namibia criminalizes some homosexual acts. Although no legislation or other primary source criminalizing homosexuality or homosexual acts was located, some secondary sources indicate that sodomy is a common-law crime in the country. No information on penalties imposed for the commission of this crime was located.


Niger
Homosexual acts appear to be legal, as there does not seem to be any provision of the Penal Code of Niger dealing with these issues.


Nigeria
Nigeria’s federal law criminalizes homosexuality. Anyone who has carnal knowledge of any person against the order of nature or permits a male person to have carnal knowledge of him or her against the order of nature commits an “unnatural offence, a felony punishable on conviction with a fourteen-year prison term. An attempt to commit an unnatural offence, also a felony, is punishable on conviction by a seven-year prison term. In addition, Nigeria bans male persons from engaging in what it calls gross indecency: procuring or attempting to procure another male for the commission of gross indecency in public or private. A violation of this ban is a felony punishable on conviction by a three-year prison term. Furthermore, Nigeria prohibits a “public show of same sex amorous relationship directly or indirectly, the violation of which is, on conviction, punishable by ten years of imprisonment. There are some states that have adopted Sharia law and these states reportedly have imposed the death penalty for homosexual behavior. Nigeria prohibits any form of gay rights advocacy. The Same Sex Marriage Act states that the registration of gay clubs, societies and organizations, their sustenance, processions and meetings is prohibited. Violation of this provision is punishable on conviction by a ten-year prison.


Rwanda
No laws against homosexual relations.


São Tomé e Príncipe
The new Penal Code enacted in 2012 does not criminalize homosexuality.


Senegal
Homosexual acts are punished with one to two years of imprisonment and a fine of about US $209–$3,142.


Seychelles
Seychelles appears to prohibit certain homosexual acts. Its Penal Code bans sodomy, stating that anyone who “has carnal knowledge of any person against the order of nature or permits a male person to have carnal knowledge of him or her against the order of nature” commits a felony punishable on conviction by a fourteen-year prison term.


Sierra Leone
It appears that Sierra Leone bans certain homosexual acts. Although all sources consulted for this report indicate that sodomy is currently illegal in Sierra Leone, they appear to diverge on the question of the source for this law. Some indicate that the prohibition is based on an 1861 English law banning buggery sodomy and bestiality, introduced in Sierra Leone during the colonial era, which is still in force in the country. This law states that “whosoever shall be convicted of the abominable Crime of Buggery, committed with Mankind or any Animal, shall be liable, at the Discretion of the Court, to be kept in Penal Servitude for Life or any Term not less than Ten Years. ”Another source indicates that sodomy is a felony under common law in Sierra Leone.


Somalia
Somalia bans homosexuality. Its Penal Code states that anyone “who has carnal intercourse with a person of the same sex shall be punished, where the act does not constitute a more serious crime, with imprisonment from three months to three years. Where the act committed is an act of lust different from carnal intercourse, the punishment shall be reduced by one third. ”In addition, a person convicted for homosexuality may be subject to what is known as a “security measure,” which is a measure imposed on persons deemed “a danger to society,” in the form of police surveillance or deportation if the person is not a citizen.


South Africa
South Africa abrogated laws criminalizing homosexual conduct, including the common-law crime of sodomy, and legalized same-sex sexual activity in 1998.


South Sudan
South Sudan bans certain homosexual acts. Its Penal Code prohibits sodomy, stating that a person who has “carnal intercourse against the order of nature with any person or who allows any person to have such intercourse with him or her” commits an “unnatural offence,” punishable on conviction by up to ten years in prison and a fine. The crime is complete at penetration.


Sudan
The Penal Code of 1991 states as follows: Section 148 Sodomy.(1) Any man who inserts his penis or its equivalent into a woman’s or a man’s anus or permits another man to insert his penis or its equivalent in his anus is said to have committed Sodomy.(2) (a) Whoever commits Sodomy shall be punished with flogging by one hundred lashes and he shall also be liable to five years’ imprisonment.(b) If the offender is convicted for the second time he shall be punished with flogging by one hundred lashes and imprisonment for a term which may not exceed five years.(c) If the offender is convicted for the third time he shall be punished with death or life imprisonment. The Penal Code also provides that anyone who carries out acts considered “indecent or inappropriate to the public morals will be punished by flogging not exceeding 40 times or a fine or both punishments."


Tanzania
Mainland Tanzania criminalizes certain homosexual acts. The country’s Penal Code bans sodomy and imposes a harsh penalty. Under this law, anyone who has carnal knowledge of any person against the order of nature or permits a male person to have carnal knowledge of him or her against the order of nature commits a crime punishable on conviction by thirty years to life imprisonment. An attempt to commit sodomy is also criminalized and is punishable on conviction by a minimum of twenty years of imprisonment. In addition, the law bans indecent practices between males: any male who commits any act of gross indecency with another male, procures another male to commit such act or attempts to procure the commission of such act commits a crime punishable on conviction by a five-year prison term. Gross indecency includes a sexual act that is more than ordinary but falls short of actual intercourse and may include masturbation and indecent physical contact or indecent behavior without any physical contact.


Togo
Homosexual acts are punished by one to three years of imprisonment and a fine of about US$210–$1,050.


Tunisia
Sodomy, if not covered by any of the other articles, is punished with imprisonment for three years. In addition, anyone who intentionally and publicly promotes indecency is punishable by imprisonment for six month and subject to a fine of about US$30.


Uganda
Uganda’s Penal Code bans sodomy, stating that anyone who has carnal knowledge of any person against the order of nature or permits a male person to have carnal knowledge of him or her against the order of nature commits a crime punishable on conviction by life in prison. An attempt to commit such crimes, also prohibited, is punishable on conviction by a seven-year prison term. In addition, the Penal Code prohibits what it calls indecent practices by any person. A law adopted by the country’s Parliament on December 20, 2013, and signed by President Yoweri Museveni on February 24, 2014, criminalizes homosexuality and imposes harsh penalties for violations of its provisions. Under this law, an offense of homosexuality which includes sodomy, homosexual oral sex, the recently adopted law uses broad language to ban what it calls the promotion of homosexuality, including the use of electronic devices which include internet, films, [or] mobile phones for the purpose of homosexuality or promoting homosexuality; engaging in such activity is punishable by five to seven years in prison and/or a fine. If the perpetrator of this offense were a juridical person, the operating license would be lost and the person in charge would be subject, on conviction, to a seven-year prison term. Same-sex sexual activity is punishable on conviction by a fourteen year prison term. An attempt to commit such an offense is punishable on conviction by a seven-year prison term. Aggravated homosexuality, which includes recidivism, is punishable by up to life in prison.


Zambia
Zambia’s Penal Code bans sodomy, stating that anyone who has carnal knowledge of any person against the order of nature…or permits a male person to have carnal knowledge of him or her against the order of nature commits a crime, on conviction, punishable by fourteen years to life in prison. Attempt, also a crime, is punishable on conviction by a seven to fourteen-year prison term. When the perpetrator of the offense is an adult, he/she is punishable on conviction by seven to fourteen years of imprisonment. However, if the perpetrator of this crime is a child, courts are authorized to impose only community service or counseling.


Zimbabwe
Zimbabwe prohibits male homosexual conduct. A male person who, with consent, performs anal sexual intercourse, or any act involving physical contact other than anal sexual intercourse that would be regarded by a reasonable person to be an indecent act commits the crime of sodomy, on conviction, punishable up to one year of imprisonment and/or a fine.


Below are more articles you will find thought provoking.

  1. Scientific Racism Ota Benga the human exhibited at the Bronx ZooScientific Racism Ota Benga the human exhibited at the Bronx Zoo=
  2. Top 20 Largest Countries in AfricaTop 20 Largest Countries in Africa=
  3. What is an African ProverbWhat is an African Proverb=
  4. African Water Spirit Mami WataAfrican Water Spirit Mami Wata=
  5. Percentage of White people living in Africa Percentage of White people living in Africa=


Chic African Culture and The African Gourmet=

Wise African Proverb

Wise African Proverb

More Articles to Read from Chic African Culture

Show more

Week’s Best Posts and Pages

Three Easy to Make South African Recipes

What is the difference between ugali and fufu

The Serenity Prayer translated into the 10 most popular African languages

Eat With Your Fingers to Reduce Plastic Waste