Gen 19:1-9 tells the story of the wickedness of Sodom and Gomorrah. The term ‘sodomy’ as a reference for anal sex comes from this story because that sex act is often performed by gay men. In the story, some angels come to Sodom and spend the night with Abraham’s nephew, Lot. The men of the town come to Lot’s door to ask him to turn the angels over to them “so that we may know them." Lot asks the men not to be so wicked and offers his daughters instead, but they refuse and threaten to break down his door. Later, because the cities were so wicked, they were destroyed.
The word translated “to know” in Verse 5 is also used in Judges 19 to indicate that they raped a woman to death. Lot was more familiar with the men of Sodom and Gomorrah than we are. Would he have offered his daughters to people whom he knew were gay? Even in the most conservative estimates, the gay population is only a fraction of the entire group. It is more probable that he knew the men in the group were heterosexual, and that this ‘knowing’ was a reference to rape and sexual degradation.
These two wicked towns are mentioned other places in the bible, and nowhere does it mention that the sin of Sodom was homosexuality. Rather, it indicates that the sin was inhospitality. Take Ezekiel for instance:
This was the guilt of your sister Sodom: she and her daughters had pride, excess of food, and prosperous ease, but did not aid the poor and needy. They were haughty, and did abominable things before me; therefore I removed them when I saw it.
Whether you lump homosexual activity in with ‘abominable things’ or not, this passage deals with homosexual rape—not two individuals in a loving, committed relationship.