Endotoxins exert their toxic effects by interacting with Toll-like receptors (TLRs) on immune cells, particularly TLR4. This interaction triggers a cascade of signaling pathways that result in the production of inflammatory cytokines, leading to an immune response. The overproduction of these cytokines can cause systemic inflammation and contribute to conditions such as septic shock.