An endotoxin is a toxic substance produced within an organism, typically by certain bacteria. It is often released upon the death of the bacterium and can cause harm to other living organisms if it enters their body. Endotoxins are different from exotoxins which are released by live bacteria into their environment.