God created the universe and earth over the course of 7 days according to Genesis 1:1-31. The passage states that in the beginning God created the heavens and the earth, and everything was created for a purpose as seen through the complex design of the human eye which has many parts to help with vision.