These results advance the understanding of the mechanisms regulating colitis development caused by IL-23 and food colorants and identify IFN-γ+ cytotoxic CD4+ T cells as a new potential therapeutic target for colitis. Here, CD4 is linked to colitis.