Lex Scantia is the earliest known law condemning the act of sodomy, written by the Romans.

Reference article: http://www.infopt.demon.co.uk/homopho2.htm