As we saw in Genesis 1:26-27, God made man and woman on day 6 of creation. In Genesis 2, we get more details of how the creation of woman came about. At this point, God has created everything except the woman. So every creature has a mate, except for Adam.
And the LORD God said, It is not good that the man should be alone; I will make him an help meet for him. 19 And out of the ground the LORD God formed every beast of the field, and every fowl of the air; and brought them unto Adam to see what he would call them: and whatsoever Adam called every living creature, that was the name thereof. 20 And Adam gave names to all cattle, and to the fowl of the air, and to every beast of the field; but for Adam there was not found an help meet for him. (Gen. 2:18-20)