I believe it's in Leviticus... Something about a how a man should not have sex with another man.

Marriage was originally when a man and a woman were to grow in faith together. That was the basis. Entirely religious.

Curtis