In melanoma tumor model, the in‐situ hydrogel could greatly promote the DCs maturation, induce sufficient T lymphocyte in LNs, eventually increase the proportion of CD8+ and CD4+ T cells in tumors, and effectively control the growth of tumor and lung metastasis. The gene discussed is CD8A; the disease is melanoma.