Photosynthesis is the process by which plants use sunlight, water, and carbon dioxide to produce glucose, releasing oxygen as a byproduct into the atmosphere. Cellular respiration and combustion, by contrast, consume oxygen and release carbon dioxide.