Photosynthesis is the process by which plants have some bacteria and some protistans and use the energy from sunlight to produce glucose from carbon dioxide and water. This glucose can be converted into pyruvate which releases adenosine triphosphate by cellular respiration. oxygen is also formed.