Articles · LGBTQ+ History

British Colonial Anti-Gay Laws: Buggery Act to Section 377

A plain-language guide to the laws Britain exported, from the Buggery Act 1533 to Section 377 and the criminal codes of Africa and the Caribbean, and where they still apply.

By Adrian Solen · Published September 29, 2026 · Approximately 10 minutes

Aged legal books and tilted brass scales on a desk, casting barred window shadows.
Old law books and tilted scales suggest the uneven legacy of colonial legal codes.

British colonial anti-gay laws are the criminal statutes Britain carried into its empire, above all the Buggery Act 1533 and the "unnatural offences" clause drafted for India in 1860, Section 377. They made consensual same-sex acts felonies in dozens of colonies, and many of those provisions survive today.

This guide follows the laws from a Tudor statute through the Indian Penal Code and the codes of Africa and the Caribbean, then charts the modern repeals and the places where the old laws still stand.

What Are British Colonial Anti-Gay Laws?

British colonial anti-gay laws are the criminal provisions that British rule carried around the world, usually under older words rather than any modern term. The central ones are the offence of "buggery", the Indian Penal Code's "carnal intercourse against the order of nature" in Section 377, and the later "gross indecency" laws. Together they made consensual sex between men a crime across much of the empire.

They arrived by three main routes. Some territories received English law directly when Britain settled or annexed them. Others copied the Indian Penal Code, drafted in the 1830s and enacted in 1860, whose Section 377 became the model across South and Southeast Asia. A third group used codes built on the Queensland Criminal Code of 1899, drafted for Australia but exported to parts of Africa and the Pacific.

The laws were never one single statute, and they did not all punish the same acts. Some named only anal intercourse. Some added "gross indecency" between men. A few were later widened to mention women. What they shared was a colonial origin and a long afterlife, often in countries that kept, copied or stiffened the provisions after independence.

The Buggery Act 1533

The Buggery Act 1533 is usually described as England's first civil law against sodomy. Its full title was "An Acte for the punishment of the vice of Buggerie" (25 Hen. 8 c. 6), passed in the reign of Henry VIII. Before it, such cases sat with the church courts. The statute moved the offence into the royal courts and made buggery with mankind or beast a felony punishable by death.

The Act's timing mattered. It arrived during Henry VIII's break with Rome, when Parliament was transferring church powers to the Crown. Making the offence a secular felony was part of that shift in jurisdiction.

The statute did not stay settled. It was repealed, restored, repealed again and re-enacted within three decades, then survived in substance for centuries. An Irish statute of 1634 established the same offence in Ireland.

The Buggery Act and its early replacements
Year What changed
1533 Parliament passes the Buggery Act (25 Hen. 8 c. 6); buggery becomes a capital felony in the royal courts rather than the church courts.
1547 The Act is repealed in the first year of Edward VI.
1548 Parliament restores the offence (2 & 3 Edw. 6 c. 29).
1553 The Act is repealed again under Mary I.
1563 Elizabeth I re-enacts the offence (5 Eliz. 1 c. 17); it remains the basis of English buggery law for centuries.

From the Buggery Act to the Offences Against the Person Act 1861

In 1828 Parliament consolidated the English offences and kept the death penalty. The Offences Against the Person Act 1861 then replaced execution with imprisonment. Section 61 of that Act punished "the abominable crime of buggery" with penal servitude for life or for any term not less than ten years.

Before that change, the law killed. James Pratt, aged 30, and John Smith, aged 40, were convicted in 1835 and hanged outside Newgate Prison on 27 November 1835, the last men executed for sodomy in England. A police magistrate, Hensleigh Wedgwood, wrote to the Home Office that year asking for the sentences to be commuted. The request failed.

In 1885 Parliament added the Labouchere Amendment to the Criminal Law Amendment Act. Its Section 11 created the offence of "gross indecency" between men, in public or private, with up to two years' imprisonment. That clause, not the older buggery law, was used against Oscar Wilde in 1895 and Alan Turing in 1952. The Turing case is covered in Why Was Alan Turing Prosecuted for Homosexuality?, and the longer English chronology appears in When Did Homosexuality Become Illegal? A Legal History.

Section 377: Macaulay and the Indian Penal Code

Section 377 was written for India. The Indian Law Commission, led by Thomas Babington Macaulay, produced a draft penal code in 1837, and the finished Indian Penal Code was enacted on 6 October 1860. Section 377 said: "Whoever voluntarily has carnal intercourse against the order of nature with any man, woman or animal" could be imprisoned for life, or for up to ten years, and fined.

The section never used the word "homosexual", and it did not name gay people. It criminalised a category of acts, and it gave courts no definition of "against the order of nature", so interpretation varied from case to case. In practice it was used mainly against sex between men.

Macaulay's code was meant to be uniform written law for a vast territory, replacing the patchwork of received English law and local practice. The International Commission of Jurists describes Section 377 as modelled on the Buggery Act. The Indian Penal Code then became a template, and colonial officials carried its chapters, including Section 377, into other colonies.

How One Clause Travelled the Empire

From India, the clause travelled. A 2021 BBC survey of Asia listed Pakistan, Bangladesh, Myanmar, Malaysia, Singapore, Brunei and Sri Lanka among the places where Section 377 or a close relative survived into the twenty-first century.

Pakistan and Bangladesh kept Section 377 almost verbatim from the Indian Penal Code they inherited at partition. Myanmar's Penal Code carried the same clause. Malaysia's Penal Code criminalises carnal intercourse against the order of nature in sections 377A and 377B. Sri Lanka took a slightly different path: its 1883 Penal Code used sections 365 and 365A for "carnal intercourse against the order of nature" and "gross indecency".

Singapore kept Section 377A, which criminalised gross indecency between men, until Parliament repealed it in November 2022. The repeal took effect on 3 January 2023. Singapore was a rare case of legislative repeal in Asia, where most change has come through the courts, as it did in India.

The Other Colonial Models: Africa and the Caribbean

Not every colony used Section 377. In West Africa, the Caribbean and parts of East Africa, other English models did the work.

In the Gold Coast, the Criminal Ordinance of 1892 made "unnatural carnal knowledge" an offence. That clause survives in Ghana as section 104 of the Criminal Offences Act 1960. In Nigeria, the colonial government consolidated a Criminal Code in 1916, drawing on the Queensland Criminal Code of 1899, and criminalised unnatural offences in section 214. Kenya's Penal Code of 1930 carried "unnatural offences" in section 162 and "indecent practices between males" in section 165. Uganda's Penal Code Act of 1950 did the same in sections 145 and 148.

Queensland's 1899 code deserves a mention of its own. Drafted for an Australian colony, it criminalised carnal knowledge against the order of nature and became a second imperial model, exported to Papua New Guinea and influencing codes in Africa. The empire did not export one clause; it exported a habit of legislating the same acts.

In the Caribbean, the route was often direct reception of English law. Jamaica's Offences Against the Person Act of 1864 kept "the abominable crime of buggery" in section 76, punishable with up to ten years' hard labour. Sierra Leone still applies section 61 of the English Offences Against the Person Act 1861 through its Courts Act 1965. The Gambia's Criminal Code of 1934 carried an "unnatural offences" section, section 144.

Some states later widened the old laws. The Gambia amended its code in 2005 to extend provisions to women, and several Caribbean legislatures raised penalties during the twentieth century.

Colonialism and Homosexuality: What the Evidence Shows

The evidence supports a direct connection between British colonialism and the criminalisation of homosexuality, and a partial one. British rule did not introduce every moral objection to same-sex acts, but it did introduce and standardise a specific set of criminal laws in places where they had often not existed in that form. For the different ways earlier societies treated same-sex relations, see Homosexuality in Ancient Times: Did LGBTQ+ People Exist?.

Human Rights Watch's 2008 report "This Alien Legacy" traced the origins of sodomy laws in British colonialism. Enze Han and Joseph O'Mahoney's 2018 book found that the empire spread criminalisation through several routes and that the legacy varied by region. Douglas Sanders, writing in the Asian Journal of Comparative Law, called Section 377 the iconic example, a rewriting of the old buggery law whose language travelled around the British colonial world.

In the Gold Coast, researchers note that pre-colonial societies did not carry the same criminal sanction that the 1892 ordinance introduced. In India, the colonial code displaced a much more varied legal and social landscape. None of this means every pre-colonial society was permissive. It means the uniform criminal prohibition is largely a colonial artefact.

The other side is equally documented. After independence, many states kept the laws, and several strengthened them. Britain exported the framework; independent governments then chose to retain or extend it.

Britain's own position shifted late. In 1967 England and Wales decriminalised private acts between men over 21, well after the older and harsher law had been installed across the empire. In April 2018, Prime Minister Theresa May told Commonwealth leaders she regretted Britain's role in introducing the laws and their legacy of discrimination, violence and death, and urged remaining states to decriminalise. The International Commission of Jurists reported in 2023 that more than 30 states criminalise same-sex conduct through laws with British colonial roots.

The Human Cost of the Laws

The laws look abstract in a statute book. They were not abstract to the people charged under them.

In Botswana, Letsweletse Motshidiemang challenged the Penal Code's sodomy provisions. The High Court in Gaborone ruled on 11 June 2019 that sections 164 and 167 were unconstitutional, and the Court of Appeal affirmed the decision on 29 November 2021. In Belize, Caleb Orozco spent years challenging section 53 of the Criminal Code; the Supreme Court struck it down in 2016 and the Court of Appeal upheld that ruling in 2019.

In Namibia, Friedel Dausab challenged the common-law crimes of sodomy and unnatural sexual offences, and on 21 June 2024 a three-judge High Court held them unconstitutional. In India, Navtej Singh Johar and other petitioners convinced the Supreme Court on 6 September 2018 to read down Section 377 so it no longer reached consenting adult conduct.

The Wolfenden Committee had warned in 1957 that laws against private homosexual conduct invited blackmail. The International Commission of Jurists has made the same point about Sri Lanka, where the colonial-era provisions are used to arrest, harass and extort money from people, often without charges. Criminal provisions also complicate HIV prevention, because people who fear prosecution avoid testing and treatment.

Modern Repeals: When Former Colonies Decriminalised

Decriminalisation has come in waves. Britain moved first in 1967, settler colonies followed between the 1960s and 1990s, and a later wave of court rulings ran through Asia, Africa and the Caribbean from 2010 onward.

The pattern is uneven. Some changes were legislative, as in Canada, New Zealand, Ireland, Hong Kong, Fiji, Lesotho, the Seychelles and Singapore. Others came from courts, as in South Africa, Belize, India, Botswana and the Eastern Caribbean. A court win is not always the end of the matter: Trinidad and Tobago's 2018 High Court ruling was overturned on appeal in March 2025, leaving sections 13 and 16 of the Sexual Offences Act in force.

Selected decriminalisation milestones in Britain and former colonies
Year Place What changed
1967 England and Wales Sexual Offences Act 1967 decriminalises private consensual acts between men aged 21 or over.
1969 Canada Criminal Law Amendment Act removes the general criminal offence for private consensual acts.
1975-1997 Australia South Australia decriminalises first in 1975; Tasmania is the last state, in 1997.
1986 New Zealand Homosexual Law Reform Act 1986.
1991 Hong Kong Legislative repeal decriminalises consensual acts.
1993 Ireland Criminal Law (Sexual Offences) Act 1993.
1998 South Africa Constitutional Court strikes down the common-law sodomy offence in National Coalition for Gay and Lesbian Equality.
2010 Fiji Crimes Decree removes colonial-era sodomy and unnatural acts offences.
2012 Lesotho New Penal Code omits the offence.
2016 Seychelles, Nauru, Belize Seychelles amends its Penal Code; Nauru's Crimes Act takes effect; Belize's Supreme Court strikes down Section 53, upheld on appeal in 2019.
2018 India Supreme Court reads down Section 377 in Navtej Singh Johar v. Union of India, 6 September.
2019 Botswana High Court declares the provisions unconstitutional; the Court of Appeal affirms this in 2021.
2022-2023 Antigua and Barbuda, Barbados, St Kitts and Nevis, Singapore High Courts strike down buggery and indecency laws in three Eastern Caribbean states; Singapore's Parliament repeals Section 377A, in force 3 January 2023.
2024 Namibia, Dominica Namibia's High Court rules the common-law offences unconstitutional on 21 June; Dominica's High Court strikes down Sections 14 and 16 of the Sexual Offences Act in April.

Where Colonial-Era Laws Stand Today

The table below is a snapshot, not a complete census. It covers former British territories and shows whether the colonial-era provisions still stand. Statuses are as of early 2023 except where later rulings are shown. Several 2024 and 2025 decisions are still working through appeals, so the map keeps shifting.

Most of the original statutes named acts between men. Some later amendments named women, and a few jurisdictions criminalised both sexes from the start.

Status of colonial-era laws in selected former British territories
Place Colonial-era provision Status
England and Wales Buggery Act lineage; 1861 Act s 61 Decriminalised from 1967
Canada Received English law Decriminalised 1969
Australia State laws; Queensland Criminal Code 1899 Decriminalised 1975-1997
New Zealand Received English law Decriminalised 1986
Hong Kong Colonial offences Decriminalised 1991
Ireland 1634 Act; 1861 Act Decriminalised 1993
South Africa Common-law sodomy and statutes Decriminalised 1998
Fiji Colonial Penal Code Decriminalised 2010
Lesotho Penal Code Decriminalised 2012
Seychelles Penal Code s 151 Decriminalised 2016
Nauru Criminal Code Decriminalised 2016
Belize Criminal Code s 53 Decriminalised 2016; appeal upheld 2019
India Penal Code s 377 Read down for consenting adults 2018
Botswana Penal Code ss 164, 167 Struck down 2019; affirmed 2021
Singapore Penal Code s 377A Repealed, in force 3 January 2023
Antigua and Barbuda Sexual Offences Act Struck down July 2022
Barbados Sexual Offences Act Struck down 2022
St Kitts and Nevis Offences Against the Person Act Struck down 2022
Dominica Sexual Offences Act ss 14, 16 Struck down April 2024
Namibia Common-law sodomy and unnatural offences Declared unconstitutional 21 June 2024
Pakistan Penal Code s 377 Still in force
Bangladesh Penal Code s 377 Still in force
Sri Lanka Penal Code ss 365, 365A Still in force
Myanmar Penal Code s 377 Still in force
Malaysia Penal Code ss 377A, 377B Still in force
Brunei Penal Code s 377 Still in force
Kenya Penal Code ss 162, 165 Still in force
Uganda Penal Code Act ss 145, 148 Still in force
Ghana Criminal Offences Act s 104 Still in force
Nigeria Criminal Code s 214 Still in force
Sierra Leone 1861 Act s 61 via Courts Act 1965 Still in force
The Gambia Criminal Code s 144 Still in force
Jamaica Offences Against the Person Act 1864 s 76 Still in force
Trinidad and Tobago Sexual Offences Act ss 13, 16 In force after the 2018 ruling was overturned in March 2025
Guyana Criminal Law (Offences) Act Still in force
Grenada, Saint Lucia, St Vincent and the Grenadines Criminal Code provisions Still in force as of 2023; a February 2024 challenge in St Vincent was dismissed

Frequently Asked Questions

What was the Buggery Act 1533?

It was an Act of the Parliament of England, 25 Henry VIII c. 6, that made buggery with mankind or beast a secular felony punishable by death. Before 1533 such cases sat with the church courts. The statute was repealed and restored several times, re-enacted in 1563, and later replaced in 1828 and 1861.

How did British colonial anti-gay laws spread?

Britain spread them through three main channels: received English statutes and common law, the Indian Penal Code of 1860 with Section 377, and codes modelled on the Queensland Criminal Code of 1899. Colonial administrators copied the clauses into local penal codes across Asia, Africa and the Caribbean, where many remain.

Did colonialism create the criminalisation of homosexuality?

British rule did not invent every disapproval of same-sex acts, but it standardised and exported a specific criminal framework that many pre-colonial legal systems did not have in the same form. Scholars such as Enze Han and Joseph O'Mahoney show the spread was real and uneven, and that independent states then chose to keep or extend the laws.

Which former British colonies still criminalise same-sex relations?

Provisions survive in many countries, including Pakistan, Bangladesh, Sri Lanka, Myanmar, Malaysia, Brunei, Kenya, Uganda, Ghana, Nigeria, Jamaica and Guyana. The International Commission of Jurists reported in 2023 that more than 30 states criminalise same-sex conduct through laws with British colonial roots.

Sources and further reading

  1. BBC News: 377: The British colonial law that left an anti-LGBTQ legacy in Asia
  2. International Commission of Jurists: Decolonising the law: Repeal antiquated morality laws
  3. Douglas E. Sanders, 377 and the Unnatural Afterlife of British Colonialism in Asia (Asian Journal of Comparative Law)
  4. Offences Against the Person Act 1861, section 61 (legislation.gov.uk)
  5. The National Archives: LGBTQ+ Rights in Britain, Source 2 (Pratt and Smith, 1835)
  6. Human Dignity Trust: Motshidiemang v. Attorney General Botswana (2019)
  7. Singapore Statutes Online: Penal Code (Amendment) Act 2022
  8. Human Dignity Trust: Criminalisation of LGBT People in Kenya

Reader Reflections

Share a suggestion, review, question, or personal response. Comments are reviewed before they appear publicly.

Please accept cookies before sending a comment. This lets us limit spam without storing your raw IP address publicly.

No public comments yet

Be the first to share a thoughtful note. Approved comments will appear here.