Due to the programmable release of CCL21a and GM‐CSF, the hydrogel vaccine inhibits tumor growth and metastasis, via diverting cancer cell TdLNs metastasis to hydrogel, killing cancer cells trapped in the hydrogel to produce tumor antigen, and eliciting prolonged and powerful tumor‐specific immunotherapy coordinately. The gene discussed is CSF2; the disease is cancer.