Many acacias produce alkaloid chemicals as defensive compounds to deter insects and mammalian herbivores. Some of these alkaloids are toxic to livestock, while others have psychoactive properties. In small quantities they are edibily, larger quanties, however, give varying degrees of health problems.