Secondary compounds are complex chemicals made by plants that are not essential to the life of the plant. They are thought to be produced primarily as pesticides and anti-grazing agents, but they also used as pigments, hormones and chemical agents that can attack other plants.
So, the correct option is 'Defense against herbivores'.