Objective To explore the diagnostic value of bronchoalveolar lavage fluid(BALF)and serum nuclear transcription factor kappa B(NF kappa B),Toll like receptor 2(TLR-2),Toll like receptor 4(TLR-4),and tumor necro-sis factor alpha(TNF alpha)in pneumonia.Methods 57 pneumonia patients who visited our hospital from January 2023 to March 2024 were selected as the study group,and 57 healthy individuals who underwent physical examinations at the hospital during the same period were selected as the control group.Peripheral venous blood and alveolar lavage fluid were collected to detect the levels of NF-κ B,TLR-2,TLR-4,and TNF-α.Pearson correlation analysis was used to analyze the correlation between NF-κ B,TLR-2,TLR-4,and TNF-α in the patient's serum and BALF.Results The se-rum levels of NF-κ B(41.74±4.75)μg/L,TLR-2(5.32±1.12)ng/L,TLR-4(6.44±1.61)ng/L,and TNF-α(4.36±1.03)ng/L in the study group were higher than those in the control group,and the differences were statistically signifi-cant(P<0.05).The levels of NF-κ B(8.19±2.62)μg/L,TLR-2(2.97±0.79)ng/L,TLR-4(4.24±1.18)ng/L,and TNF-α(2.04±0.59)ng/L in BALF of patients in the study group were higher than those in the control group,and the differences were statistically significant(P<0.05).Pearson correlation analysis showed that the levels of NF-κ B,TLR-2,TLR-4,and TNF-α in the patient's serum and BALF were positively correlated(P<0.05).Conclusion NF-κ B,TLR-2,TLR-4,and TNF-α are highly expressed in the serum and BALF of pneumonia patients.Combined detection is helpful for early diagnosis and evaluation of the condition.