Flavonoids are chemical compounds produced by plants to protect themselves from bacteria and parasites. Flavonoids naturally occur in fruits, vegetables, seeds, and berries.