A sodomy law is a law that defines certain sexual acts as crimes. The precise sexual acts meant by the term sodomy are rarely spelled out in the law, but are typically understood by courts to include any sexual act deemed to be unnatural or immoral. Sodomy typically includes anal sex, oral sex and bestiality.