Lawrence v. Texas
In the United States, the Supreme Court invalidated all sodomy laws in "Lawrence v. Texas" in 2003. 47 out of 50 states had repealed any specifically anti-homosexual-conduct laws at the time.