The mechanisms whereby the gut mucosa tolerates trillions of commensal bacteria without developing inflammation remain poorly understood. A recent Science article reveals that gut innate lymphoid cells constrain inflammatory T cell responses to commensal bacteria by adopting a strategy usually deployed by thymic epithelial cells to negatively select self-reactive T cells.