Using IL-9-deficient (IL-9−/−) mice, flow cytometry, real-time PCR and enzyme-linked immunosorbent assay (ELISA) were conducted to investigate the immune function related to Th17 response in defense against Pneumocystis infection. This evidence concerns the gene IL9 and Pneumocystis infectious disease.