PTPN2 and infection: Our findings highlight that intestinal epithelial PTPN2 is crucial for mucosal immunity as it promotes antimicrobial peptide defenses and enhances barrier function during infection from pathobionts such as AIEC, and noninvasive commensals.