Emperor Zhao, last ruler of the Shang Dynasty, was much given to cruelty and debauchery. His favorite pastime was forcing slaves to swim naked in a wine-filled lake. (Which doesn’t actually sound too bad to us. Maybe it was a bad vintage.)
When finally overthrown (despite the aid of CAI-SHEN in warrior mode) he went to Heaven to put in his immortality claim. There was nothing remotely suitable, so the Heavenly Judges had to create a post specially for him: God of Sodomy.
To curtail his activities he was only granted a single temple at Weihui in Henan. It’s still there to this day, and you can worship there — if you really wish to.