Oral infection of mice showed that abnormal expression of hemolysin in vivo alerts the immune system and induces caspase-11-dependent enterocyte pyroptosis and IL-18 secretion, which significantly constrains bacterial infection in the gut. Here, IL18 is linked to bacterial infectious disease.