Merneptah, the king of Egypt, boasts that he has destroyed his enemies in Canaan.
This is also the first recorded encounter of the divine ruler of Egypt and Yahweh the God of Abraham.
The story of Joseph gives a much more detailed picture of Egypt and the ambiguity of its role.
Criminal sanctions against gay and bisexual men tended to arise not from the penal code itself, but from a supplemental law, enacted in 1961, to combat prostitution.
The law against prostitution also bans "debauchery", even if the act did not involve trafficking or prostitution.
In addition to the law on prostitution, other public morality or order-based laws gave the police and judges significant leeway to jail or fine gay and bisexual men.