Upon infection of mammalian macrophages, cytosolic flagellin triggers the activation of Naip/NLRC4 inflammasome, which culminates in pyroptosis and restriction of bacterial replication. Here, NLRC4 is linked to infection.