Defensive chemicals function through various mechanisms. Some act as repellents, deterring herbivores or predators from consuming the organism. Others have toxic effects that can incapacitate or kill the threat. Some chemicals inhibit the growth of competing organisms by interfering with their metabolic processes.