Sometimes, it may be produced to invade the host's defense mechanisms, whereas in some cases, they are produced to eliminate the competition for food and space. They can sometimes be the toxic metabolic wastes of the organisms. Bacterial toxins are of two types―endotoxins and exotoxins. Here, we explain the difference between the two toxins.