Yes, it is illegal to be gay in Saudi Arabia. Same-sex sexual conduct is a criminal offense under the Kingdom’s Sharia-based legal system, and penalties range from fines and flogging to long prison terms and, in the most serious cases, death. The law also reaches beyond sexual acts: public decency rules target gender non-conforming dress and affection, and cybercrime statutes criminalize online expressions of LGBTQ+ identity or support. These rules apply to Saudi citizens, foreign residents, and tourists alike.
The Legal Framework
Saudi Arabia has no conventional written penal code. Courts apply Sharia as interpreted by judges, drawing primarily on the Hanbali school, and the Basic Law directs courts to decide cases “according to the Holy Quran and the Sunna.”1Human Rights Watch. Precarious Justice – Section: I. Sharia and Statutory Law No official interpretation defines criminal offenses with statutory precision, so judges have broad discretion over what counts as a crime and how severely to punish it.
Criminal cases fall into two main categories relevant here. Hudud offenses carry fixed punishments drawn from scripture. Ta’zir offenses leave the sentence to the judge.2Federal Judicial Center. Saudi Arabia Same-sex acts are prosecuted either as Zina (unlawful sexual intercourse) or Liwat (sodomy). Hudud prosecutions require extraordinarily high proof, so most cases end up under Ta’zir, where outcomes vary widely from one courtroom to the next.
A draft written penal code has been under legislative review since at least 2024, and leaked text would explicitly criminalize consensual sexual relations between men, “indecent behavior,” and gender non-conforming dress. The draft only covers Ta’zir offenses and leaves Hudud uncodified. It has not been enacted as of early 2026, so judicial discretion remains the governing reality.
Penalties for Same-Sex Conduct
The sentence depends on how the case is classified, whether the accused is married, and whether the judge treats the conduct as a first or repeat offense. Two people charged with similar acts can receive very different punishments.
Hudud: Up to Death
For a married person convicted of Zina, which can include same-sex intercourse, the maximum Hudud penalty is death, historically carried out by beheading. Reaching that threshold requires four male eyewitnesses to the act, or an unretracted confession. That bar is rarely met, but it is not theoretical. In April 2019, Saudi Arabia executed 37 people, and reports indicated five of those executions were linked to same-sex sexual activity.
Ta’zir: Prison, Flogging, and Discretionary Death
Most same-sex conduct prosecutions proceed under Ta’zir, especially when the accused is unmarried or when prosecutors cannot meet the Hudud evidentiary standard. Sentences typically include prison terms from several months to multiple years, often paired with flogging. There are no fixed sentencing guidelines.
Judges can also impose the death penalty through Ta’zir discretion where they consider the conduct a grave threat to public order, without meeting the Hudud evidence standard. Repeat offenders and people accused of promoting homosexuality face elevated risk of capital punishment under this track. The result is two independent pathways to a death sentence.
Public Decency and Gender Expression
Prosecutors do not need to prove a sexual act to punish perceived LGBTQ+ identity. Public decency regulations introduced in 2019 prohibit “immodest” conduct, including public displays of affection, clothing deemed inappropriate, and what the rules describe as men imitating women in dress or appearance. Fines start at 3,000 Saudi Riyals (roughly $800) and can double for repeat offenses, with detention and discretionary imprisonment available as well.
This matters because the evidentiary burden is far lower. An officer’s observation is enough. These rules have become the primary enforcement tool against people whose appearance or behavior falls outside expected norms, even when no sexual conduct is alleged.
For transgender people, the exposure is constant. Saudi Arabia does not allow legal gender markers to be changed on identity documents, and gender-affirming medical care is not available in the country. Intersex individuals may undergo what the government classifies as “sex correction” surgery and update their documents; no equivalent pathway exists for transgender citizens. The U.S. State Department has documented that transgender people face “widespread stigma and discrimination” and that so-called “normalization” surgeries are prohibited.3United States Department of State. 2023 Country Reports on Human Rights Practices – Saudi Arabia
Online Activity and Cybercrime
Digital activity carries serious legal risk. The Anti-Cyber Crime Law punishes producing, storing, or transmitting online material deemed harmful to public order, religious values, or public morals with up to five years in prison and fines up to 3 million Saudi Riyals (about $800,000).4Bureau of Experts at the Council of Ministers. Anti-Cyber Crime Law Authorities apply it to social media posts supporting LGBTQ+ rights, private messages, and dating app use.
The U.S. State Department warns that “violations of Saudi laws governing perceived expressions of, or support for, same-sex sexual relations, including on social media, may be subject to severe punishment” and that “potential penalties include fines, jail time, or death.”5United States Department of State. Saudi Arabia International Travel Information Posting a rainbow flag, sharing advocacy material, or using a dating app to contact someone of the same sex can all trigger prosecution. The Bureau of Investigation has at points pushed for the death penalty for people who “solicit homosexual acts on social media.”
The Law of Audiovisual Media, issued by Royal Decree in 2017, adds penalties for content that “violates public decency,” “arouses sexual desires,” or “undermines public order,” with fines up to 10 million Riyals (roughly $2.7 million) and license revocation.6Ministry of Investment of Saudi Arabia. Law of Audiovisual Media
Who Enforces These Laws
The religious police, formally the Commission for the Promotion of Virtue and the Prevention of Vice, lost the power to pursue suspects, question people, request identification, or make arrests under an April 2016 Cabinet decree. They now report suspected violations to the regular police. That shift is sometimes read as liberalization, but it has not reduced legal risk. Enforcement moved to the State Security Presidency, the Ministry of Interior, and the Public Prosecutor’s Office, and continues aggressively. Commerce Ministry officials have seized rainbow-colored toys and children’s clothing from shops for “contradicting the Islamic faith and public morals.”7United States Department of State. 2022 Country Reports on Human Rights Practices – Saudi Arabia Social media monitoring is a primary tool.
Reliable statistics on arrests and prosecutions are not publicly available. Known cases reach international media or human rights organizations and likely represent a fraction of actual enforcement.
Foreign Nationals, Residents, and Travelers
Every law above applies equally to Saudi citizens, foreign residents, expatriate workers, and tourists. There is no exemption for non-citizens, and consequences often compound: a foreign national convicted of a morality offense faces criminal punishment followed by deportation.
The State Department advises American travelers to “avoid public displays of affection, particularly between same-sex couples” and warns that same-sex sexual relations, “even when consensual, are criminalized.”5United States Department of State. Saudi Arabia International Travel Information Consular assistance is limited; embassy staff cannot override Saudi law.
Expatriate workers are particularly exposed. Residency is tied to the employer through the sponsorship system, so a morality conviction ends employment, cancels residency, and leads to permanent removal after any sentence is served. Ongoing supervision by employers and local norms adds daily scrutiny that short-term visitors do not face, and consular protection for workers is limited by the same rules that apply to tourists.