Photosynthetic bacteria like purple sulfur bacteria and green sulfur bacteria do not use water as an electron donor. Instead, they use hydrogen sulfide (H2S) or other inorganic compounds, producing sulfur or sulfate as byproducts rather than oxygen. Blue-green algae (cyanobacteria), green algae, and autotrophic plants all use water and release oxygen during photosynthesis.