We found at early phase of the infection, PFOS inhibited the expansion of the pathogen by promoting IL-22 production from the group 3 innate lymphoid cell (ILC3) in an aryl hydrocarbon receptor dependent manner. Here, AHR is linked to infection.