Fact 1: darkness has a negative impact on photosynthesis. 
Fact 2: Light is necessary for photosynthesis, a process that produces oxygen.
Darkness has a negative impact on the process that produces oxygen.