Book of Deuteronomy have given various answers to the problem. The Deuteronomistic history theory is currently the most popular (Deuteronomy was originally just the law code and covenant, written to cement the religious reforms of Josiah, and later expanded to stand as the introduction to the full history); but there is an older theory which sees Deuteronomy as belonging to Numbers, and Joshua as a sort of supplement to it. This idea still has supporters, but the mainstream understanding is that Deuteronomy, after becoming the introduction to the history, was later detached from it and included with Genesis-Exodus-Leviticus-Numbers because it already had Moses
Religious views on same-sex marriage are based upon Old Testament biblical passages such as Genesis 19:4-11, Leviticus 18:22, and Leviticus 20:13, while others are based upon New Testament biblical passages such as Romans 1, I Corinthians 6:8-10, and Jude 1:7. Conservative Christians note that the book of Leviticus contains a prohibition against male-male sexuality. While the Biblical passages mentioned above do not define the institution of marriage, Genesis 2:22-24 reads as follows: "Then the Lord God made a woman from the rib he had taken out of the man, and he brought her to the man. The man said, 'This is now bone of my