Napoleon’s Criminal Code, introduced in 1810, was an influential book of criminal law that reached several parts of the world, and, although France did not occupy Egypt, Napoleon’s Criminal Code held great influence over Egyptian law.  The code of criminal laws, introduced by Napoleon I, penalizes any indecent public offense.  This particular crime was linked to same-sex relations, intensifying the act by considering it an assault onto society. The British did not colonize Egypt, but implied indirect rule. Their overwhelming power over other colonies indirectly influenced Egyptian government over time. Section 377 of the Indian Penal Code (1860) was Britain’s attempt to set standards of behavior over their colonies. This was the first anti-sodomy law included in a penal code.  It declares sexual acts involving oral or anal penetration as a crime.  While the IPC did not directly affect Egyptian law, it set a standard for British colonies in Asia, the Pacific Islands, and several African countries. Towards the end of the nineteenth century, hereditary ruler Khedive Tawfiq implemented regulations within the sex work industry, with additional regulations made by the British. Prostitution is seen as a practice for both males and females working to satisfy any type of lust of others. Punishing commercial sex automatically results in the notion of punishing homosexual acts as well.