Rap1 deficiency in T cells impairs development or maintenance of Rorγt+ Tregs in the colonic lamina propria, leading to an increase in pathogenic Th17 cells and development of spontaneous colitis. Here, RAP1A is linked to colitis.