Photosynthesis uses sunlight to convert water and carbon dioxide into