Laws governing lesbian, gay, bisexual, transgender, and queer (LGBTQ) rights are complex in Asia, and acceptance of LGBTQ people varies. Same-sex behavior is illegal in 21 Asian countries. The behavior is punishable by death in Afghanistan, Brunei, Iran, Qatar, Saudi Arabia, the United Arab Emirates and Yemen. Same-sex behavior is also punishable by imprisonment in 14 other Asian countries, such as Iraq, Kuwait, Malaysia, Oman and Syria. In addition, LGBT people also face extrajudicial executions from non-state actors such as the Islamic State of Iraq and the Levant and Hamas in the Gaza Strip. While egalitarian relationships have become more frequent in recent years, they remain rare.
Historical discrimination towards homosexuality in much of the region include the ban on homosexual acts enforced by Genghis Khan in the Mongol Empire, which made male homosexuality punishable by death. The Fatawa-e-Alamgiri of the Mughal Empire (descended from the Mongol Empire) mandated a common set of punishments for homosexuality, which could include 50 lashes for a slave, 100 for a free infidel, or death by stoning for a Muslim, whereas the Yuan Dynasty (descended from the Mongol Empire) implemented a crackdown on homosexuality in China that was continued by the Ming Dynasty.