Sodomy is most commonly legally defined as any contact between the genitals of one person, and the mouth or anus of another. The word has its origins in Christianity. It is sometimes used to mean sexual deviation, though in legal contexts it is defined as above. Throughout history, "sodomites," mostly male homosexuals and bestialists, have been punished by a largely theocratically controlled government, in hopes of stamping out "ungodly practices" that might bring divine retribution against Christian society. In medieval Europe, intercourse between a male field worker and a noble woman was legally considered "sodomy," as it was thought to cause a poor harvest. The history of the concept of sodomy is tied to the Church in most every case.
Currently, there is no federal sodomy law, though some federal land falls under maritime jurisdiction, which may have sanctions in some cases. 25 states do not have sodomy laws. 5 states have laws pertaining to homosexual sodomy only, and the remaining 20 states, plus the District of Columbia, have laws covering all sodomy, even between heterosexuals.