Yes, homosexuality is illegal in Pakistan. Sexual acts between men are a criminal offense under Section 377 of the Pakistan Penal Code, punishable by two years to life in prison. No specific statute criminalizes sex between women, but the broader legal and social environment is hostile to all LGBTQ+ people: there are no anti-discrimination protections based on sexual orientation, same-sex marriages and partnerships are not recognized, and LGBTQ+ content is actively censored online. For most people, the day-to-day danger is less about courtroom convictions than about police extortion, family retaliation, and the collapse of social standing that follows any accusation.
What Section 377 Criminalizes
Section 377, a holdover from British colonial rule in 1860, is the main law used against same-sex conduct. It targets “carnal intercourse against the order of nature” with any man, woman, or animal. A conviction carries a minimum of two years and a maximum of ten years, with life imprisonment also possible, plus a fine.1Pakistan Law Journal. Pakistan Penal Code 1860 – Unnatural Offences
The statute requires proof of penetration, though completion of the act is not necessary. Because it focuses on the physical act rather than the identities involved, its language is broad enough to cover same-sex conduct along with other acts the state labels unnatural.1Pakistan Law Journal. Pakistan Penal Code 1860 – Unnatural Offences
In practice, Section 377 is enforced almost entirely against men. There is no Pakistani statute criminalizing sexual activity between women.2GOV.UK. Country Policy and Information Note – Sexual Orientation and Gender Identity or Expression, Pakistan, November 2025 That absence from the criminal code does not translate to safety. Women in same-sex relationships still face family violence, forced marriage, and the use of general morality provisions against them.
The Islamic Law Layer
A second layer of law sits on top of the Penal Code. Pakistan’s constitution requires laws to conform with Islamic principles, and in 1979 the government of General Zia-ul-Haq enacted the Hudood Ordinances to push criminal law closer to Islamic injunctions. The Offence of Zina Ordinance governs sexual intercourse outside marriage, and its maximum penalties, called hadd, include stoning to death for a married person and one hundred public lashes for an unmarried person.3Pakistani.org. The Offence of Zina (Enforcement Of Hudood) Ordinance, 1979
Those punishments sound terrifying on paper, and they matter for understanding the climate, but the evidentiary bar for applying them is so high that they are essentially never used for same-sex conduct. There are no known cases of the government applying Zina hadd penalties to same-sex acts and no known executions on that basis.2GOV.UK. Country Policy and Information Note – Sexual Orientation and Gender Identity or Expression, Pakistan, November 2025 When the hadd standard cannot be met, judges can fall back on discretionary tazir penalties, which include shorter prison terms and whipping. The real-world threat remains Section 377.
What Enforcement Looks Like in Practice
Formal prosecutions for consensual same-sex acts are rare. One assessment in a major Pakistani city found only about ten prosecutions over a multi-year period, with just two resulting in ten-year sentences. In most arrests, charges are eventually dropped.2GOV.UK. Country Policy and Information Note – Sexual Orientation and Gender Identity or Expression, Pakistan, November 2025
The bigger danger sits upstream of any courtroom. Police routinely use the threat of Section 377 to extort money or sexual favors from men who have sex with men and from transgender women. Officers rely on the stigma attached to the charge itself. A mere accusation can destroy family ties, employment, and standing in the community, so many cases are “resolved” quietly through bribes or informal pressure.2GOV.UK. Country Policy and Information Note – Sexual Orientation and Gender Identity or Expression, Pakistan, November 2025
Finding a lawyer willing to defend such a case is its own obstacle. Many attorneys refuse out of fear of professional or social backlash. The process itself becomes the punishment. Public exposure, prolonged detention, and the fallout of being linked to same-sex charges can be devastating regardless of how the case ends.
Online and App-Based Risks
Digital life carries its own exposure. In September 2020, the Pakistan Telecommunication Authority blocked five dating and live-streaming apps, including Tinder and Grindr, citing “immoral/indecent content” and non-compliance with local laws. Those apps remain blocked.4Pakistan Telecommunication Authority. PTA Blocks Five Dating/Live Streaming Applications
Beyond the app bans, the Prevention of Electronic Crimes Act of 2016 gives the government broad authority to remove or block online content on grounds of public order, decency, and morality. LGBTQ+ advocacy, community-building, and personal expression all fall within what authorities can target. Any online trail connecting a person to same-sex activity can also become ammunition for blackmail by private actors or corrupt officials.
No Protections Against Discrimination
Pakistan has no federal or provincial law shielding people from discrimination based on sexual orientation. An employer can fire a gay employee, a landlord can refuse to rent, and there is no legal remedy. This absence is not an oversight. It fits a legal posture that treats same-sex orientation as something to be penalized rather than protected. International companies operating in Pakistan sometimes maintain internal non-discrimination policies, but those carry no force under Pakistani law.
Transgender Status Is a Separate Question
Transgender rights in Pakistan sit on different legal footing, and the two issues are often confused. The Transgender Persons (Protection of Rights) Act of 2018 recognized the right of transgender individuals to register their self-perceived gender identity on official documents and prohibited discrimination in education, employment, and housing. It also formally recognized the Khwaja Sira community.5ILGA World. Transgender Persons (Protection of Rights) Act, 2018
In 2023, the Federal Shariat Court ruled that self-perceived gender identity is not recognized under Islamic law, holding that Islamic teachings rest on biological sex. That judgment is currently suspended while the Supreme Court considers it, so the 2018 Act’s protections have not been formally repealed. None of this changes the status of sexual orientation, which remains outside any protective framework.
Family, Honor, and Social Consequences
For most LGBTQ+ Pakistanis, the daily reality is shaped less by courts and more by family. Pakistani society is organized around the patriarchal family unit, and the concept of izzat, or family honor, operates as a powerful informal regulator. Being outed or even suspected can lead to forced marriage, family violence, or complete social exclusion.
Many people live double lives. Public discourse about same-sex relationships is almost entirely hostile, mainstream media portrayals tend toward mockery or condemnation, and open advocacy is essentially nonexistent. Community-building happens in small, private, often underground networks. Economic class shapes how all of this lands. Wealthier individuals with access to private space and the ability to travel internationally have some insulation. For people with fewer resources, scrutiny is more immediate and consequences harder to escape.
If You Are Traveling to Pakistan
Foreign nationals face the same legal framework as Pakistani citizens. Section 377 applies regardless of nationality. Pakistan does not recognize same-sex marriages or partnerships performed abroad, so a same-sex spouse cannot be sponsored on a family-based visa or receive any form of spousal recognition.
The UK government’s country guidance explicitly notes the criminalization of consensual same-sex acts and the risk of police extortion.2GOV.UK. Country Policy and Information Note – Sexual Orientation and Gender Identity or Expression, Pakistan, November 2025 LGBTQ+ dating apps are blocked nationwide, and any digital footprint tying a traveler to same-sex activity can create legal exposure or make them a target for extortion. Travelers who stay fully discreet may have no trouble. But the legal reality does not bend: same-sex conduct is a criminal offense, there is no safety net if something goes wrong, and the informal risks reach visitors as much as citizens.