At the early stage of cancer metastasis, IL-22 produced by tissue-resident iNKT17 cells facilitates the extravasation of cancer cells into the liver, and CD4+TRM cell-derived IL-22 promotes tumor metastasis at the late stage. This evidence concerns the gene IL22 and cancer.