Gene expression profiles and bioinformatics analysis confirmed that M0 macrophages and neutrophils play an irreplaceable role in pulpitis immunity, and the critical genes in the immune reaction to pulpitis are suggested to be IL-6, TNF-α, IL-1β, CXCL8, and CCL2. Here, TNF is linked to pulpitis.