There is no role of oxygen in photosynthesis. Oxygen is used as the terminal electron acceptor during respiration. Oxygen is the by-product of a water molecule breaking down in the very beginning of photosynthesis to supply photosystem II with electrons.