Some plans of leaves that are poisonous to some animals what kind of adaptation is this

The adaptation is a defense mechanism called chemical defense. By producing leaves that are poisonous to some animals, the plant is able to deter herbivores from consuming its leaves and potentially causing harm to its survival and reproduction.