although section 377 did not explicitly include the word "homosexual", it has been used to prosecute homosexual activity. the provision was introduced by authorities in the raj in 1862 as section 377 of the indian penal code and functioned as the legal impetus behind the criminalization of what was referred to as, "unnatural offenses" throughout the various colonies, in several cases with the same section number.