The relationship between sunlight and chlorophyll is that chlorophyll absorbs sunlight and uses its energy to synthesise carbohydrates from CO2 and water.
These are both needed in photosynthesis because without sunlight and the chlorophyll, photosynthesis would not be able to synthesise carbohydrates from CO2.