During the process of photosynthesis they convert water and carbon dioxide, in the presence of light energy, into oxygen and simple sugars.
Photosynthesis is described by this statement: carbon dioxide and water are turned into sugar and oxygen.