During photosynthesis, energy from sunlight is used to start a reaction with carbon dioxide and water.
These reactions produce glucose, which stores energy. Oxygen is also produced and released into the atmosphere.
During cellular respiration, oxygen is used to break down glucose molecules into carbon dioxide, water, and energy (ATP).