Sodomy laws in the United States were laws that made certain kinds of sexual activity illegal. In the past, there were federal laws against sodomy. Every state also had a sodomy law, even in the 20th century.