In photosynthetic cells, synthesis of ATP by the chemi-osmotic mechanism occurs during photosynthesis and respiration. Plants can only achieve photosynthesis during the day and then respire during the night because photosynthesis requires the sun's energy to perform the necessary reaction to produce oxygen.