Flexi Says: Photosynthesis is the process that uses energy from the sun, together with carbon dioxide and water, to make glucose and oxygen. The primary role of glucose is to store energy that was originally from the Sun (solar energy) as chemical energy in the bonds of the molecule. Cellular respiration is a process that releases the chemical energy in glucose to make ATP (adenosine triphosphate), molecules that transfer smaller amounts of energy to power all the cellular functions.