Here the authors investigate conditional knock out mice with TNFR1 and/or TNFR2 deficiency in NK cells upon bacterial infection, and identify that TNFR1 promotes cell death and impairs immunity while TNFR2 increases NK accumulation and enhances immunity. This evidence concerns the gene TNFRSF1B and bacterial infectious disease.