Endotoxins are the main component of the outer membrane of gram-negative bacteria. They contribute to the structural integrity of bacteria. Endotoxins can also act like pyrogen.