Photosynthesis and respiration are opposing but complementary processes. Photosynthesis uses sunlight, carbon dioxide, and water to produce glucose and oxygen through chlorophyll in plant cells. Respiration uses glucose and oxygen to produce carbon dioxide, water, and energy in the form of ATP in both plant and animal cells through mitochondria. Together these processes sustain life on Earth.