In this study, we found that the main source of IL-17 in S.aureus-infected lung was γδ T cells and depletion of γδ T cells results in the reduced IL-17 expression in the early phase of infection. Here, IL17A is linked to infection.