Genesis 1:27 tells us that God created male and female. "So God created man in his own image, in the image of God created he him; male and female created he them."
In the previous verse, "And God said, Let us make man in our image" the word 'man' (adamah) is used in the sense of mankind.
Gen 2:21-25 is about the joining together of two people in marriage, notice the word 'wife'.
21 And the LORD God caused a deep sleep to fall upon Adam, and he slept: and he took one of his ribs, and closed up the flesh instead thereof;
22 And the rib, which the LORD God had taken from man, made he a woman, and brought her unto the man.
23 And Adam said, This is now bone of my bones, and flesh of my flesh: she shall be called Woman, because she was taken out of Man.
24 Therefore shall a man leave his father and his mother, and shall cleave unto his wife: and they shall be one flesh.
25 And they were both naked, the man and his wife, and were not ashamed.
The analogy of the rib illustrates the bond that is forged between husband and wife.
Matthew Henry says, “She was not made out of his head to top him, she was not made out of his feet to be trampled upon by him, but out of his side to be equal to him, under his arm to be protected, and near his heart to be loved."