On the fourth day of creation, God created the two great lights - the greater light to rule the day (the sun) and the lesser light to rule the night (the moon). These lights were set in the expanse of the sky to give light on the earth and to mark the seasons, days, and years. God also created the stars and set them in the expanse of the sky. This is recorded in Genesis 1:14-19.