We demonstrate that SHP2 deficiency in T lymphocytes augments colitis but inhibits the development of colitis-associated colorectal cancer. This evidence concerns the gene PTPN11 and colitis.