Mechanistic studies revealed that the IL-6–JAK2–STAT3 axis contributed to Th17 cell/IL-17A activation in PmA infection. Here, IL17A is linked to infection.