Collectively, we demonstrated that MGLL functioned as a CB2-dependent switch in regulating the activation of TAMs, exhaustion of CD8+ T cells and subsequent development of cancers. This evidence concerns the gene CD8A and cancer.