In summary, our findings revealed discernible disparities in the composition of TIICs between CRC patients in the KRAS mutant group and those in the KRAS wild-type group. Here, KRAS is linked to colorectal carcinoma.