We demonstrate that normal PTPN2 expression and function in intestinal macrophages/myeloid cells is crucial to clear intestinal adherent-invasive bacteria and that PTPN2-deficiency severely compromises effective macrophage-mediated elimination of invading bacteria, thus promoting AIEC-induced intestinal disease. Here, PTPN2 is linked to intestinal disorder.