The are opposite processes. Photosynthesis requires carbon dioxide, water and sunlight to create oxygen and glucose. Where cellular respiration requires oxygen and glucose to create ATP energy, and carbon dioxide and water as waste products. Since the processes are opposite of each other they are in a never ending cycle. One provides the other with the necessary reactants to create the products