The blood-brain barrier (BBB) protects the central nervous system from infections or harmful substances1; its impairment can lead to or exacerbate various diseases of the central nervous system2-4. However, the mechanisms of BBB disruption during infection and inflammatory conditions5,6 remain poorly defined. Here we find that activation of the pore-forming protein GSDMD by the cytosolic lipopolysaccharide (LPS) sensor caspase-11 (refs. 7-9), but not by TLR4-induced cytokines, mediates BBB breakdown in response to circulating LPS or during LPS-induced sepsis. Mice deficient in the LBP-CD14 LPS transfer and internalization pathway10-12 resist BBB disruption. Single-cell RNA-sequencing analysis reveals that brain endothelial cells (bECs), which express high levels of GSDMD, have a prominent response to circulating LPS. LPS acting on bECs primes Casp11 and Cd14 expression and induces GSDMD-mediated plasma membrane permeabilization and pyroptosis in vitro and in mice. Electron microscopy shows that this features ultrastructural changes in the disrupted BBB, including pyroptotic endothelia, abnormal appearance of tight junctions and vasculature detachment from thebasement membrane. Comprehensive mouse genetic analyses, combined with a bEC-targeting adeno-associated virus system, establish that GSDMD activation in bECs underlies BBB disruption by LPS. Delivery of active GSDMD into bECs bypasses LPS stimulation and opens the BBB. In CASP4-humanized mice, Gram-negative Klebsiella pneumoniae infection disrupts the BBB; this is blocked by expression of a GSDMD-neutralizing nanobody in bECs. Our findings outline a mechanism for inflammatory BBB breakdown, and suggest potential therapies for diseases of the central nervous system associated with BBB impairment.