Hindu philosophy has the concept of a third sex or third gender (tritiya-prakriti – literally, "third nature"). This category includes a wide range of people with mixed male and female natures such as transgender persons, homosexuals, transsexuals, bisexuals, the intersexed, and so on. Such persons were not considered fully male or female in traditional Hinduism, being a combination of both. They are mentioned as third sex by nature (birth) and were not expected to behave like ordinary men and women. They often kept their own societies or town quarters, performed specific occupations (such as masseurs, hairdressers, flower-sellers, domestic servants, etc.) and were generally attributed a semi-divine status. Their participation in religious ceremonies, especially as crossdressing dancers and devotees of certain temple gods/goddesses, is considered auspicious in traditional Hinduism. Some Hindus believe that third-sex people have special powers allowing them to bless or curse others. However, these beliefs are not upheld in all divisions of Hinduism. In Hinduism, the universal creation is honored as unlimitedly diverse and the recognition of a third sex is simply one more aspect of this understanding

Source: Wikipedia.