Shortly after the Jordanian annexation of the West Bank in 1950, same-sex acts were decriminalized across the territory with the adoption of the Jordanian Penal Code of 1951. In the Egyptian-occupied Gaza Strip and under Hamas' rule, however, no such initiative was implemented.
On 18 September 1936, the criminal code of Mandatory Palestine, British Mandate Criminal Code, which drew from Ottoman law or English law, was enacted. Section 152(1)(b)(c) of the code states that any person who "commits an act of sodomy with any person against his will by the use of force or threats" or "commits an act of sodomy with a child under the age of sixteen years" is liable for imprisonment up to 14 years, while Section 152(2)(b) states that anyone who has "carnal knowledge" of anyone acting "against the law of nature" is liable for a prison term up to 10 years.Palestinian academic Sa'ed Atshan argued that this criminal code was an example of British export of homophobia to the Global South.
https://en.wikipedia.org/wiki/LGBT_rights_in_the_State_of_Palestine