What is the compound needed for photosynthesis?

CO2 and H2O are two essential basic compounds for photosynthesis which occur in presence of sunlight