In the New Testament of the Bible, Matthew 10:15, Jesus Christ referred to the ancient cities of Sodom and Gomorrha. The context is the destruction of those two cities because the people in them were wicked enough that God destroyed them.
The ancient prophet Isaiah said (Isaiah 3:9), ". . . they declare their sin as Sodom, they hide it not. Woe unto their soul!"
In Genesis of the Old Testament, it is clear that God destroyed Sodom and Gomorrah (chapter 13, verse 10), for we read, ". . . the Lord destroyed Sodom and Gomorrah. . ." and the reason is seen in verse 13: "But the men of Sodom were wicked and sinners before the Lord exceedingly."
The sin of sodomy is referred to in the New Testament specifically (First Timothy, 1:10): "For whoremongers, for them that defile themselves with mankind, for menstealers, for liars, for perjured persons, and if there be any other thing that is contrary to sound doctrine;" (To defile with mankind means when a male has a sex-like act with another male.)
Thus the Bible teaches us that acting out same-gender attraction, to the point of participating in sexual-type actions between those of the same gender, is a serious sin. When the societies of Sodom and Gomorrah became degraded to a certain point in immorality, God destroyed them.