IL-17 production by tissue-resident MAIT cells is locally induced in children with pneumonia. Here, IL17A is linked to pneumonia.