Answer:
The earth's rotation, earth is rotating, so one side of earth will be hit by the sun, and the other wont be hit, making it dark, but since earth rotates, it causes it to turn, making one side have daylight, and the other, darkness, which the light you see is from the sun's reflection on the moon
Hope this helps