Lesbian, gay, bisexual, transgender, and queer (LGBTQ) people in Iran face severe challenges not experienced by non-LGBTQ residents. Sexual activity between members of the same sex is illegal and can be punishable by death, and people can legally change their sex at birth only through sex reassignment surgery.
LGBTQ rights in Iran have come in conflict with the penal code since the 1930s. In post-revolutionary Iran, any type of sexual activity outside a heterosexual marriage is forbidden. Same-sex sexual activities are punishable by imprisonment, corporal punishment, fines, or execution. Gay men have faced stricter enforcement actions under the law than lesbians.