Photosynthesis and cellular respiration work together to provide energy for life. Photosynthesis uses sunlight to convert carbon dioxide and water into glucose and oxygen. The glucose is used by plants and animals through cellular respiration, which breaks down glucose and uses oxygen to produce carbon dioxide, water, and ATP as a form of chemical energy. The ATP produced through respiration powers cellular processes and activities that keep organisms alive.