While cellular respiration releases carbon dioxide into the environment, photosynthesis pulls carbon dioxide out of the atmosphere. The exchange of carbon dioxide and oxygen during photosynthesis (Figure below) and cellular respiration worldwide helps to keep atmospheric oxygen and carbon dioxide at stable levels.