In the current study, our experiments highlighted that both cKp and hvKp infection induced the occurrence of pyroptosis in macrophages and lung tissues by detecting the protein or mRNA levels of pyroptosis-related genes, including NLRP3, caspase-1, GSDMD, ASC, and IL-1β, while in hvKp infection model, the degree of pyroptosis was more pronounced. This evidence concerns the gene NLRP3 and infection.