Once God created "the heaven and the earth" (Genesis 1:1). His next step was to start the processes that made the universe function : energy, gravity, etc. . He did this through the third Person of the Trinity, the Holy Spirit. The work of the Holy Spirit in creation on Day One was to energize the earth in order to prepare it for the rest of the creation events. The text states that the Spirit of God "moved upon the face of the waters" (Genesis 1:2).
In verses three through five we are told that the first thing God did to prepare the earth for man was to call light into being. " And God said, Let there be light; and there was light. And God saw the light, that it was good: and God divided the light from the darkness. And called the light Day and the darkness he called Night. And the evening and the morning were the first day."
The Lord Jesus Christ spoke the Word and physical light came into being. These verses would certainly teach us that God is the source of physical light. But we ought to also be reminded that God is the source of spiritual Light as well. "For God, who commanded the light to shine out of darkness hath shined in our hearts, to give the light of the knowledge of the glory of God in the face of Jesus Christ" (II Corinthians 4:6). The same power that broke the powers of darkness and brought physical light into being can today break the powers of spiritual darkness and flood our hearts with the glory and light of Heaven.
The first three verses of Genesis 1 gives us the Trinity of the Godhead. I John 5:7 says, "For there are three that bear record in heaven, the Father, the Word, and the Holy Ghost: and these three are one." The Father is the source of all things (Genesis 1:1), the Spirit (Holy Ghost) is the energizer of all things (Genesis 1:2), and the Word (Jesus Christ) is the revealer of all things (Genesis 1:3). Thus the living Word of God, who is the Light of the world (John 1:1-5) revealed light for the first time. Once light appeared in the world, darkness was immediately dispelled.
It is worth noting that at the very "beginning" (Genesis 1:1), God used a specific linguistic structure to define what He was doing. There was a "light" portion which God called "Day" and a "dark" portion, which God called "Night". A definite system of time had been developed, a dark-light cycle, which man observes today in the relation of the earth, allowing light during the "morning" and darkness during the "evening". The sequence of "evening" and "morning" was specially called the first day of Creation (Genesis 1:5).