Same-sex marriage is illegal in most of the world. As of early 2026, roughly 40 nations and territories allow same-sex couples to marry, while more than 60 criminalize consensual same-sex relationships entirely. The consequences for couples in the restrictive countries range from a quiet denial at the marriage registry to life imprisonment or execution, and the category a country falls into determines nearly everything about how a couple can live, travel, or leave.
Countries That Impose the Death Penalty
Twelve countries impose or authorize the death penalty for consensual same-sex sexual conduct: Afghanistan, Brunei, Iran, Mauritania, Nigeria (in its northern states), Pakistan, Qatar, Saudi Arabia, Somalia, Uganda, the United Arab Emirates, and Yemen. In ten of the twelve, the legal framework derives from Sharia law.1U.S. Commission on International Religious Freedom. Governments Using Sharia to Impose Death Sentences on LGBTI Persons Marriage is not a separate question in these jurisdictions. Any attempt to form a recognized union would be a confession to a capital offense.
Saudi Arabia treats same-sex conduct the same as adultery, with potential punishment of death by stoning. Iran actively imposes the death penalty on men convicted of same-sex conduct, while women face lashing. Yemen’s penal code prescribes death by stoning for both men and women. Enforcement varies, and some of these countries have not carried out executions for same-sex acts in years, but the legal authority remains in force.
Brunei’s 2013 Syariah Penal Code authorizes stoning for same-sex acts between men, but the Sultan announced in 2019 that the existing moratorium on executions would extend to the new Sharia provisions, and no known executions have taken place. Mauritania operates under a similar de facto moratorium. A moratorium is not a repeal, and it can be lifted at any time without legislative action.
Countries That Impose Prison Sentences
Below the death-penalty tier, dozens of countries punish same-sex relationships with prison sentences ranging from a few years to life. In these places, the relationship itself is a crime, which makes marriage structurally impossible: no government issues a marriage license to people it considers criminal conspirators.
Nigeria’s Same-Sex Marriage Prohibition Act of 2013 is one of the most explicit examples. Anyone who enters into a same-sex marriage or civil union faces up to 14 years in prison, and anyone who witnesses, assists, or participates in the ceremony faces up to 10 years.2ILGA World Database. Nigeria Same-Sex Marriage (Prohibition) Act, 2013 The law criminalizes not just the couple but the clergy, family, and friends around them.
Uganda’s Anti-Homosexuality Act of 2023 goes further. The base offense carries a sentence of life imprisonment. A separate “aggravated homosexuality” provision authorizes the death penalty in specific circumstances, including when the accused is HIV-positive or the other person is under eighteen or has a disability. The law also imposes up to 20 years for “promoting homosexuality” and requires citizens to report suspected same-sex conduct to police within 24 hours or face up to five years in prison themselves.3Parliament of Uganda. The Anti-Homosexuality Act, 2023
Many of these statutes trace their origins to colonial-era penal codes. British colonial law introduced “unnatural offenses” provisions across Africa, South Asia, and the Caribbean, and a significant number of former colonies never repealed them. Enforcement varies, but the laws provide a standing legal basis to deny marriage applications, arrest couples, and prosecute anyone who facilitates a ceremony. In some countries, these provisions sit dormant for years and are revived during political campaigns or social panics.
Countries with Constitutional Marriage Bans
A different approach skips criminal penalties and writes a heterosexual definition of marriage into the constitution. This method is less dramatic than imprisonment but harder to reverse. Changing a criminal statute takes an act of parliament. Changing a constitutional definition typically requires supermajorities, referendums, or both.
Russia’s 2020 constitutional amendments defined marriage exclusively as a union between a man and a woman, with an emphasis on “traditional family values.”4European Parliament. Constitutional Change in Russia Russia has declared that its constitution takes precedence over international agreements when they conflict, so no Russian court or legislature can grant same-sex marriage rights without first amending the constitution.
Hungary’s Fundamental Law takes the same approach. Article L states that “Hungary shall protect the institution of marriage as the union of a man and a woman established by voluntary decision, and the family as the basis of the survival of the nation.”5European Union Agency for Fundamental Rights. The Fundamental Law of Hungary This language blocks the judiciary from reading existing family law to include same-sex couples, no matter how broadly a court might interpret other constitutional provisions on equality or human dignity.
Numerous constitutions across Latin America, the Caribbean, and parts of Africa contain similar definitions. A couple in one of these countries may face no risk of arrest, but they are permanently locked out of joint tax treatment, automatic inheritance rights, medical decision-making authority for an incapacitated partner, and spousal immigration status.
Countries Where the Union Is Simply Unrecognized
A third category covers countries that neither criminalize same-sex relationships nor provide any legal path to marriage. Couples face no risk of arrest, but their unions produce no legal effect. The relationship is invisible to the state.
The Philippines is a clear example. The Family Code defines marriage as “a special contract of permanent union between a man and a woman” and requires that contracting parties be “a male and a female.”6Chan Robles Virtual Law Library. Executive Order No. 209 – The Family Code of the Philippines Without amending that code, no government office can issue a marriage certificate to a same-sex couple.
Vietnam occupies an unusual middle ground. In 2014, the country removed the ban on same-sex wedding ceremonies from its marriage and family law, which had previously subjected couples to administrative fines. Couples can now hold ceremonies freely, but the state still refuses to register same-sex marriages or grant them legal status. The ceremony is legal; the marriage is not.
Japan sits in the same tier despite active litigation. Multiple Japanese courts have ruled that the refusal to allow same-sex marriage is unconstitutional, including a Tokyo High Court decision in October 2024 and an earlier Sapporo High Court ruling. The National Diet has not passed legislation to change the law, and same-sex couples still cannot marry in Japan.
What Happens to a Foreign Marriage Certificate
A same-sex couple who marries in Canada, the Netherlands, or another permissive jurisdiction often finds that the marriage evaporates at certain borders. Most countries that prohibit same-sex marriage refuse to recognize foreign marriage certificates through a legal doctrine known as the public policy exception. Under this principle, a country can disregard a legal act performed abroad when that act conflicts with fundamental domestic values or law. The foreign marriage is treated as if it never happened.
The consequences are sweeping. The couple cannot file taxes jointly. They cannot inherit from each other automatically. If one partner is hospitalized, the other may have no legal authority to make medical decisions or even receive information about the partner’s condition. If one partner dies without a will, the survivor may have no claim to the family home under local inheritance law. In countries with constitutional marriage bans, the foreign certificate does not qualify the couple for spousal visas or joint residency permits.
U.S. immigration is a significant exception. USCIS applies a “place-of-celebration” rule: if the marriage was legally valid where it was performed, USCIS recognizes it regardless of where the couple currently lives. A couple married in a country that permits such marriages can petition for a spousal visa through USCIS even if they currently reside in a jurisdiction that does not recognize their union.7U.S. Citizenship and Immigration Services. Chapter 2 – Marriage and Marital Union for Naturalization The domicile country’s law on same-sex marriage has no effect on whether USCIS treats the marriage as valid.
Travel Risk and What a U.S. Passport Can’t Do
Traveling to or through a country that criminalizes same-sex relationships carries real risks, and the protections available to foreign nationals are more limited than many people assume. A U.S. passport does not shield anyone from local criminal law. An American citizen arrested for same-sex conduct in a country where it is illegal is subject to that country’s legal system.
U.S. consular officers can visit a detained citizen, provide a list of local English-speaking attorneys, contact the detainee’s family or employer with permission, and press local officials to provide adequate medical care. They cannot get anyone released from detention, provide legal advice, represent anyone in court, or pay legal fees.8U.S. Department of State. Arrest or Detention Abroad Couples traveling to restrictive jurisdictions should research local laws in advance, avoid public displays of affection, and expect that social media posts and phone contents may be inspected at some borders.
Asylum and Spousal Petitions as Exits
For individuals fleeing countries where same-sex relationships are criminalized, U.S. asylum law offers a potential path to safety. Asylum requires the applicant to demonstrate a well-founded fear of persecution based on race, religion, nationality, membership in a particular social group, or political opinion.9Office of the Law Revision Counsel. 8 USC 1158 – Asylum Sexual orientation and gender identity claims typically fall under “membership in a particular social group.”
The applicant must prove that their sexual orientation or gender identity was or will be “at least one central reason” for the persecution they fear. The persecutor must be a government actor or a private actor that the government is unable or unwilling to control. Where same-sex conduct is criminalized by statute, the criminal law itself can serve as evidence of government-sponsored persecution, particularly when penalties are severe. UNHCR guidelines recognize that LGBTQ+ individuals displaced by discriminatory laws and hostile social conditions may qualify for refugee resettlement, and that emergency processing may be warranted when standard timelines would increase security risks.
Married couples where one partner is a U.S. citizen have a second option. Because USCIS recognizes same-sex marriages under its place-of-celebration rule, the citizen spouse can file an immigrant visa petition for their partner even if the couple married in a third country and the foreign partner’s home country criminalizes the relationship. The marriage just needs to have been valid where it was performed.
Private Workarounds and Their Limits
Couples living in countries without marriage recognition often turn to private legal arrangements to replicate some of marriage’s protections. These typically include co-ownership agreements for property, powers of attorney for medical and financial decisions, and explicit wills designating the partner as beneficiary. In some jurisdictions, courts have recognized co-ownership claims when both partners can show financial contributions to acquiring the property, even without a marriage certificate.
These workarounds are fragile. A power of attorney can be challenged by hostile family members. A will can be contested under inheritance laws that favor blood relatives. Medical decision-making authority granted by private agreement may not be honored by a hospital that does not recognize the underlying relationship. And in countries where the relationship itself is criminalized, creating a paper trail of shared finances, joint property, and mutual legal authority can amount to building a prosecution file. Until the underlying law changes, couples in these countries face a choice between legal protection and personal safety with no clean answer available.