Carbon dioxide is converted into sugars in a process called carbon fixation. Carbon fixation is a redox reaction, so photosynthesis needs to supply both a source of energy to drive this process, and also the electrons needed to convert carbon dioxide into carbohydrate, which is a reduction reaction. In general outline, photosynthesis is the opposite of cellular respiration, where glucose and other compounds are oxidized to produce carbon dioxide, water, and release chemical energy.