Our study identified GALNT7 as a glycosyltransferase capable of stratifying patient outcomes and modulating PD-L1 levels, specifically within dMMR/MSI colorectal cancers. Here, GALNT7 is linked to colorectal cancer.