Marriage is God's idea. When He made man and gave him a task, He said 'it is not good that man should be alone. I'll make him a helpmeet'. God saw that for man to succeed in the task, he needed someone of the opposite gender to which he was covenanted.