Taken together, our results demonstrated that IL-17 and IL-10 could play the protective roles in the progression of PCP and the inverse correlation of them might be mediated by STAT3. Here, IL10 is linked to pneumocystosis.