How do plants turn sunlight into food?

Photosynthesis doesn't necessarily turn sunlight into food. Rather, it turns carbon dioxide and water into food, using sunlight as the energy to perform this process.