Why is sunlight needed is making food of the plants?

All plants need sunlight to produce photosynthesis. Photosynthesis is the process in which plants make their own food; if a plant does not get sunlight (or enough sunlight) then it will die.