Verified Answer :

sunlight provides energy to the plant so that they are able to change water into nutrients

well without that sunlight the plants cant get the light energy they need to make oxygen