The Tanzania Penal Code of 1945 (as revised by the Sexual Offences Special Provisions Act, 1998) provides as follows:
Section 138A. Acts of gross indecency between persons.
According to Part I(3) of the Sexual Offences Special Provisions Act, 1998: “gross indecency” in Section 138A “means any sexual act that is more than ordinary but falls short of actual intercourse and may include masturbation and indecent physical contact or indecent behaviour without any physical contact”.
Section 154. Unnatural offences.
Section 155. Attempt to commit unnatural offences.
Section 157. Indecent practices between males.
The Zanzibar Penal Code of 1934, as amended in 2004, provides as follows: