After the wrong choice and action of the first human beings the elohim had no other choice than to bring over man the curse He had warned them for. But out of love for His creatures He also provided straight away a solution against the curse of death and gave man a second chance.
God made Himself a beautiful Royal Garden, the Gan Eden with in the midst of it a Etz HaDa'as Tov v'Rah or Tree of moral of which God asked man not to touch it nor eat from the fruit that gives knowledge about good and evil because they would then certainly die. But we come to see that the nachash (temptation) was to strong for the isha and she got her husband involved in her act of disobedience to the Elohim.
After having brought structure in the cosmic chaos living creatures after their kind, came to populate waters and land. Last but not least human beings got the breath of life in them to multiply on earth.