Oxygen is used in cellular respiration and released by photosynthesis, which uses the energy of sunlight to produce oxygen from water.
What life process produces oxygen in the presence of light?
photosynthesis