After intratumoral injection of the drug-loaded hydrogel into melanoma-bearing C57BL/6 mice, the PD-1/PD-L1 pathway for immune escape of tumor cells could be blockade by the sustained release of anti-PD-1. Here, PDCD1 is linked to melanoma.