Colorectal cancer (CRC) remains one of the most frequently diagnosed cancers and is the second leading cause of cancer death in Australia. Immunotherapy to treat solid cancers has had much success in multiple tumour types, however only 4-6% of patients respond to immunotherapy in the context of CRC. Moreover, immunotherapies are only currently available to patients with Microsatellite Instability (MSI)/ Mismatch Repair Deficient (dMMR) cancers. Therefore, new and improved treatments are critical to improve patient outcomes. γδ T cells are a population of tissue resident intraepithelial lymphocytes (IELs) which survey the mucosal interface between the colon epithelium. While they are known for their unique tumour killing properties, it is unclear how they exert this effect. We show that colon IELs express the receptor for the cytokine IL-21, which has been identified as a potential immunotherapy target and enhances the anti-tumour function of conventional CD8+ T cells by acting through the JAKSTAT signalling pathway. However, the role of IL-21 on colon γδ T cells has not been studied in detail and its role in defence against CRC is controversial. Here we demonstrate that IL-21 drives the expression of TCRγδ+ CD8αα+ IELs. IL-21 deficient mice exhibited a marked reduction in this population while deletion of STAT3 from CD8 T cells reproduced the phenotype, demonstrating IL-21-STAT3 signalling as a key regulatory pathway. Microbiota-dependent effects were identified through comparisons of germ-free and specific pathogen free mice suggesting a synergy between microbial signals and the colon epithelium to shape the IEL compartment. Together these findings identify a previously unrecognised cytokine pathway controlling γδ T cell homeostasis and highlight IL-21 signalling as a potential target for enhancing anti-tumour immunity.