In the beginning, God created the Heavens and the Earth. And this describes His actions:
Nothing existed except God. What was outside of God is unknown, occluded by darkness.
God spoke light into existence, so light and darkness were separated, thus day and night of day one.
God spoke the heavens, the created space of our universe, into existence, separating the unknown above or below it.
This is what God created on day two.
God created the planet earth out of the unknown, including dry land and seas. Then God created the vegetation, each reproducing after their kind, and that is what God created on day three.
Then God filled the space surrounding earth's atmosphere, (called the second heaven, the atmosphere being called the first heaven, together referred to as "the heavens) with "luminaries" (stars and objects reflecting their light) to serve as guides to better understand times and directions. And they shall provide light alternating with darkness for the earth, the sun, moon and the stars of night, and that is what God created on day 4.