
Alkaloids are subclassified on the basis of the chemical type of their nitrogen containing ring. Alkaloids are formed as metabolic by-products. However, their characteristic bitter taste and accompanying toxicity generally help to repel insects and herbivores. Complicated ecological interrelationships have developed between several insects and alkaloids. For example, the consumption of specific pyrrolizidine alkaloids is necessary for some danoid butterflies to synthsize their pheromones.