During photosynthesis, the energy from sunlight splits water molecules to produce a chemical reaction. The hydrogen ions from water molecules are participate in the reaction by forming a sugar called glucose (C6H12O6). It can be observed that all of the hydrogen is converted to glucose, while elemental oxygen is produced.