The epithelium of the gastrointestinal tract, which represents the greatest body surface area exposed to the outside environment, is confronted with a plethora of foreign and potentially harmful antigens. Consequently, the immune system of the gut faces the daunting task of distinguishing harmless dietary proteins and commensal bacteria from potentially dangerous pathogens, and of then responding accordingly. Mucosal T cells play a central role in maintaining barrier function and controlling the delicate balance between immune activation and immune tolerance. This review will focus on the unique features of mucosal T cell subsets that reside in the epithelium and lamina propria of the gut.