Original: Oxygen in the form of is produced from water by cyanobacteria , algae and plants during photosynthesis and is used in cellular respiration for all complex life .
Simplified: Most of the oxygen in the air is produced by photosynthesis .