Carbon dioxide and water are the raw material that is needed for photosynthesis. The organic compounds are produced in the chloroplast with the presence of chlorophyll and sunlight.