Photosynthesis is the process in plants by which the energy is produced in the form of glucose from carbon dioxide and water. Oxygen is produced as the byproduct. Photosynthesis requires both photosystem I and II. Photosystem II produces oxygen. In this, two molecules of water oxidizes into one molecule of molecular oxygen by the photolysis of water.