Sodomy

any of several forms of sexual intercourse held to be unnatural, particularly bestiality or historically homosexuality, but also (sometimes) anal or oral sex.

Since about the Middle Ages, sodomy is used for sexual acts that do not have the purpose procreation (making babies). In general, this refers to anal or oral sex. In some cases, it is also used to refer to sex with animals (which is usually called zoophilia). Depending on the time, the society and culture, there were laws that made sodomy a crime. Today, such laws have been overturned, or they are not enforced, in many countries of the world.

François Elluin, Sodomites provoking the wrath of God, from Le pot pourri de Loth, 1781

Countries where religion plays a large role may still have punishments for such crimes, as they are often mentioned in the scriptures of the religion which is important in the country.

Such laws, called sodomy laws, are sometimes also used to criminalize homosexuality.