Thus, this study links TLR7 signaling to the functional control of effector T cells and Treg cells and identifies Loxoribin as a new therapeutic strategy in cancer treatment, which may offer new opportunities to improve the outcome of cancer immunotherapy. Here, TLR7 is linked to cancer.