In the context of food safety, phytochemicals can be both protective and detrimental. While some phytochemicals enhance food preservation and prevent spoilage, others may lead to foodborne illnesses if not properly managed. For example, lectins in undercooked beans can cause gastrointestinal distress, highlighting the importance of proper food processing.