Colonial Laws, Modern Lives: How the Criminalization of Homosexuality Came to Tanzania and Why It Still Matters

A Young Person’s Future Changed Overnight

Imagine being a university student with dreams of becoming a lawyer, doctor, teacher, or engineer.

Now imagine those dreams disappearing—not because you failed your examinations or broke the law by harming someone, but because someone suspected you were gay.

For many LGBTQ+ young people in Tanzania, this is not a hypothetical situation.

Some have been rejected by their families, leaving them homeless while still in school. Others have faced suspension or expulsion from educational institutions because their sexual orientation or gender identity was considered immoral or a form of misconduct. Many choose to remain silent, living in constant fear that a rumour, accusation, or misunderstanding could cost them their education, family, and future.

Behind these experiences lies a question that few people ask:

Where did the laws criminalizing homosexuality in Tanzania actually come from?

Many people assume these laws are part of African culture and have always existed. History, however, tells a different story.

Before Colonial Rule: A Different Legal Landscape

Before colonial rule, the territory that is now Tanzania was not governed by a single legal system. It was home to dozens of kingdoms, chiefdoms, and communities, each with its own customs, traditions, and systems of justice.

Law was administered through elders, clan leaders, and traditional authorities. There was no national penal code, and legal traditions varied significantly from one community to another.

Much of this history was preserved through oral tradition rather than written records. This means historians cannot make sweeping claims about how every precolonial society viewed gender or sexuality. What they can say is that the modern legal offences known as “unnatural offences” and “carnal knowledge against the order of nature” did not originate from a unified indigenous Tanzanian legal tradition.

The legal language we know today arrived from elsewhere.

A Law That Began in England

The origins of Tanzania’s anti-homosexuality laws can be traced back nearly five centuries.

In 1533, during the reign of King Henry VIII, England enacted the Buggery Act. It was the first English law to make same-sex sexual conduct a criminal offence under state law.

More than 300 years later, Britain expanded its empire across Asia and Africa. As colonial territories came under British rule, Britain exported not only its political authority but also its legal system.

One of the most influential colonial laws was Section 377 of the Indian Penal Code of 1860. This provision created the offence of “carnal intercourse against the order of nature” and became the model for criminal legislation across much of the British Empire.

When Britain administered Tanganyika after the First World War, these legal concepts were incorporated into colonial legislation. Following independence in 1961, Tanzania retained much of its inherited legal framework, including provisions criminalizing consensual same-sex intimacy.

The irony is striking.

A law often defended today as “African” has its roots in English criminal law.

Victorian Morality Came With Colonial Rule

Colonialism was never only about controlling territory.

It was also about reshaping societies.

Nineteenth-century Britain was deeply influenced by what historians call Victorian morality—a social philosophy emphasizing strict gender roles, heterosexual marriage, sexual restraint, and public respectability.

British officials believed these values represented civilization itself.

Alongside colonial administrators came Christian missionaries, who established schools, churches, hospitals, and teacher-training colleges throughout East Africa.

Missionary education transformed generations of Tanzanians. It introduced literacy, expanded access to formal education, and contributed significantly to health care. At the same time, it also promoted European understandings of family, sexuality, and morality that reflected Victorian social norms.

Colonial law and missionary teaching often reinforced one another.

The law declared same-sex intimacy a crime.

Many religious institutions declared it a sin.

Over time, these ideas became deeply embedded within public institutions and social attitudes.

Today, many people sincerely believe these values have always been part of Tanzanian culture, without realizing how profoundly colonial history shaped them.

Independence Without Legal Decolonization

When Tanganyika gained independence in 1961, political power changed hands.

The legal system, however, changed much more slowly.

Like many newly independent African states, Tanzania retained much of its colonial legislation to ensure continuity in government and the administration of justice.

This decision was understandable. Replacing an entire legal system overnight was neither practical nor feasible.

Yet the consequence was that many colonial laws remained intact.

Over the decades, those laws became familiar, accepted, and eventually regarded by many as expressions of national culture rather than colonial inheritance.

History reminds us that longevity does not necessarily determine origin.

A law can exist for generations and still have been introduced through colonial rule.

The Human Cost of Criminalization

For many people, discussions about criminalization focus on prison sentences.

The reality is much broader.

The greatest impact of criminalization is often felt long before anyone enters a courtroom.

When Home Is No Longer Safe

For many LGBTQ+ young people, the first experience of punishment comes from within their own families.

A young person whose sexual orientation or gender identity becomes known—or is merely suspected—may be rejected, disowned, or forced to leave home.

For a teenager or university student who depends on family support, this can mean immediate homelessness.

Without a safe place to live, continuing education becomes almost impossible. Young people often find themselves choosing between survival and their future.

Education Interrupted

Schools and universities should prepare young people to contribute to society.

Yet many LGBTQ+ students experience educational institutions as places of fear.

Homosexuality is often viewed as serious misconduct or immoral behaviour. Students who are perceived to be LGBTQ+ may face harassment, disciplinary action, suspension, expulsion, or pressure to withdraw.

Some live in constant fear of being reported by classmates or staff.

Others remain silent because they are accused of “recruiting” or “influencing” other students, despite there being no scientific evidence that a person’s sexual orientation can be spread through social influence.

The result is not only interrupted education but interrupted lives.

Poverty Is Not an Identity—It Is a Consequence

When education is disrupted, opportunities narrow.

Without qualifications or professional training, many LGBTQ+ young people struggle to access formal employment.

Family rejection removes financial support.

Educational exclusion reduces future opportunities.

Discrimination creates additional barriers.

These factors combine to increase the risk of poverty—not because LGBTQ+ people lack talent or ambition, but because opportunities have been taken away.

The Hidden Mental Health Crisis

Living under constant fear has consequences.

Many LGBTQ+ Tanzanians experience anxiety, depression, loneliness, and trauma.

Some cope by withdrawing from society.

Others lose hope.

Some turn to alcohol or drugs in an attempt to escape emotional pain.

These are not inevitable consequences of being LGBTQ+.

They are consequences of exclusion, rejection, and criminalization.

What Tanzania Loses

Every young person denied an education represents a loss for the entire country.

Every talented student forced out of school is a future teacher who may never teach, a doctor who may never treat patients, an engineer who may never build, or an entrepreneur who may never create jobs.

Criminalization does not only affect LGBTQ+ people.

It affects Tanzania’s human capital, economic development, and future prosperity.

Why LGBT Voice Tanzania Exists

These realities are why LGBT Voice Tanzania exists.

Our work is not driven by the belief that LGBTQ+ people deserve special rights.

It is driven by the conviction that every Tanzanian deserves equal dignity, equal opportunity, and equal protection under the law.

We believe that no young person should become homeless because of who they are.

No student should lose an education because of stigma.

No family should abandon a child because of fear or misinformation.

No citizen should live in fear simply because of their identity.

Through education, community engagement, legal awareness, health promotion, psychosocial support, and human rights advocacy, LGBT Voice Tanzania works to ensure that LGBTQ+ Tanzanians can live with dignity and contribute fully to society.

We also believe that meaningful change begins with knowledge.

Understanding where our laws came from allows us to have more honest conversations about where we want our country to go.

Looking Forward

The purpose of examining history is not to assign blame.

It is to understand how the past continues to shape the present.

The criminalization of homosexuality in Tanzania did not emerge in isolation. It developed through the introduction of British colonial law, shaped by Victorian ideas about morality and reinforced through institutions that profoundly influenced Tanzanian society.

Recognizing these historical origins does not require anyone to abandon their faith or reject their culture.

It invites us to ask thoughtful questions.

If these laws originated under colonial rule, should they automatically define the values of an independent Tanzania?

If talented young people are losing their education, homes, health, and future because of stigma, what does that mean for our nation’s development?

How can we build a Tanzania where every citizen has the opportunity to contribute their talents, regardless of who they are?

These are not questions about politics alone.

They are questions about justice.

They are questions about history.

And ultimately, they are questions about the kind of future we want to build together.

At LGBT Voice Tanzania, we believe that understanding our history is the first step toward building a more informed, compassionate, and inclusive future. We invite students, parents, educators, religious leaders, policymakers, legal professionals, development partners, and all Tanzanians to join this conversation—not as opponents, but as partners in shaping a society where every person’s dignity is recognized and every young person has the opportunity to thrive.

SUPPORT US TODAY 

Endnotes and Further Reading

  1. Henry VIII, The Buggery Act 1533 (25 Hen. VIII c.6). Widely regarded as the first English statute criminalizing “buggery” under state law.
  2. Thomas Babington Macaulay, Draft Penal Code for India (1837). Macaulay’s draft formed the basis of the Indian Penal Code.
  3. The Indian Penal Code, 1860, Section 377. This provision criminalized “carnal intercourse against the order of nature” and became the model for criminal legislation across many British colonies.
  4. Marc Epprecht, Hungochani: The History of a Dissident Sexuality in Southern Africa (McGill-Queen’s University Press, 2004).
  5. Marc Epprecht, Heterosexual Africa? The History of an Idea from the Age of Exploration to the Age of AIDS (Ohio University Press, 2008).
  6. Enze Han and Joseph O’Mahoney, British Colonialism and the Criminalization of Homosexuality: Queens, Crime and Empire (Routledge, 2018). This book demonstrates how many anti-homosexuality laws in former British colonies originated from imperial legal systems rather than indigenous traditions.
  7. Sylvia Tamale (Ed.), African Sexualities: A Reader (Pambazuka Press, 2011). A collection of African scholarship examining sexuality, culture, religion, and colonialism.
  8. Kapya Kaoma, Colonizing African Values: How the U.S. Christian Right Is Transforming Sexual Politics in Africa (Political Research Associates, 2012).
  9. NgĹ©gÄ© wa Thiong’o, Decolonising the Mind: The Politics of Language in African Literature (James Currey, 1986). Although not focused on LGBTQ+ issues, this work remains foundational for understanding the cultural legacy of colonialism.
  10. Mahmood Mamdani, Citizen and Subject: Contemporary Africa and the Legacy of Late Colonialism (Princeton University Press, 1996).
  11. Human Rights Watch, “If We Don’t Get Services, We Will Die”: Tanzania’s Anti-LGBT Crackdown and the Right to Health (2020).
  12. Amnesty International, The State of the World’s Human Rights (Annual Reports – Tanzania chapters).
  13. ILGA World, State-Sponsored Homophobia (latest edition), providing a comparative overview of criminalization laws worldwide.
  14. The Constitution of the United Republic of Tanzania, 1977 (as amended).
  15. The Penal Code, Chapter 16, Revised Laws of Tanzania, particularly Sections 154–157 concerning offences historically referred to as “unnatural offences.”
  16. African Charter on Human and Peoples’ Rights (1981), recognizing rights to dignity, equality, and freedom from discrimination.
  17. African Commission on Human and Peoples’ Rights, Resolution 275 (2014), calling upon African states to prevent violence and other human rights violations based on real or perceived sexual orientation or gender identity.
  18. United Nations, Universal Declaration of Human Rights (1948).
  19. International Covenant on Civil and Political Rights (1966), particularly provisions relating to equality, privacy, liberty, and non-discrimination.
  20. Yogyakarta Principles on the Application of International Human Rights Law in Relation to Sexual Orientation and Gender Identity (2007; updated 2017). While not legally binding, these principles provide internationally recognized guidance on the application of existing human rights law.
Scroll to Top
Skip to content