In the current study, we found that B5 promoted the mRNA expression of TNF-α and IL-1β in the early infection phase, but inhibited the secretion of TNF-α, IL-1β, and IL-17 in the later infection phase, suggesting that B5 could regulate inflammatory response induced by K. pneumoniae. This evidence concerns the gene TNF and infection.