Animals generally avoid foods that are harmful to them and favor those that benefit them
Thus it is surprising that gypsy moth caterpillars prefer to eat leaves that contain high concentrations of certain naturally occurring toxins called alkaloids, even though caterpillars grow faster on alkaloid-free diets
The alkaloid-containing plants on which gypsy moth caterpillars feed increase their production of toxins when their leaves are injured.