Immunotherapy that has proven efficacy in several solid cancers plays a partial role in improving clinical outcomes of advanced gastrointestinal (GI) cancers. There is an unmet need to find new immune-related therapeutic targets. Doublecortin-like kinase 1 (DCLK1) marks tuft cells which are recognized as cancer-initiating cells and regulators of the type II immune response, and has been studied for its role in many cancers including colon and gastric cancers, but its role in tumor immunity remains unexplored. In the current study, we analyzed colon and gastric cancer RNA sequencing data from 283 and 415 patients, respectively, from The Cancer Genome Atlas (TCGA). High DCLK1 expression predicted the worse clinical outcomes in colon and gastric cancer patients and correlated with increased immune and stromal components. Further analysis indicated that DCLK1 was strongly linked to infiltration of multiple immune cell types, especially TAMs and Treg, and strongly correlated with increased CD8+ T cell inhibitors TGFB1 and CXCL12 and their receptors, suggesting it may contribute to TAM-mediated inhibition of CD8+ T cells. Interestingly, we found that DCLK1 was a prognostic biomarker in left-sided colon cancer, which has worse outcomes and demonstrates a reduced response to existing immunotherapies. In conclusion, our results demonstrate that DCLK1 is linked with functional regulation of the tumor microenvironment and may have potential as a prognostic biomarker and adjuvant target to promote immunotherapy sensitivity in colon and gastric cancer patients.