In the beginning God the Father, Son, and Holy Spirit (Jn 1:2-3; Heb 1:2; Job 26:13) was pleased to create or make the world and all things in it, both visible and invisible, in a six-day period, and all very good (Col 1:16; Ge 1:31). He did this to manifest the glory of his eternal power, wisdom, and goodness (Ro 1:20).
After God had made all the other creatures, he created humanity. He made them male and female (Ge 1:27), with rational and immortal souls (Ge 2:7), thereby making them suited to that life lived unto God for which they were created. They were made in the image of God, being endowed with knowledge, righteousness, and true holiness (Ecc 7:29; Ge 1:26). They had the law of God written in their hearts (Ro 2:14-15) and the power to fulfill it. Even so, they could still transgress the law, because they were left to the liberty of their own will, which was subject to change (Ge 3:6).
In addition to the law written in their hearts, they received a command not to eat from the tree of the knowledge of good and evil (Ge 2:17). As long as they obeyed this command, they were happy in their communion with God and had dominion over the creatures (Ge 1:26, 28).