The primary compounds responsible for the toxicity in coccinellidae are alkaloids, such as coccinelline and adaline. These defensive chemicals serve to deter predators like birds and small mammals. The potency and composition of these alkaloids can vary significantly among different species and even within populations, depending on their diet and habitat.