In conclusion, this is the first study to propose a relationship between RIPK2 and CD8+ T cells, Tregs and cancer-related fibroblasts in malignant tumours, indicating that RIPK2 and immune cells are jointly involved in the formation and development of cancer. This evidence concerns the gene RIPK2 and cancer.