The response rate of pancreatic cancer to chemotherapy or immunotherapy pancreatic cancer is low. Although minimally invasive irreversible electroporation (IRE) ablation is a promising option for irresectable pancreatic cancers, the immunosuppressive tumour microenvironment that characterizes this tumour type enables tumour recurrence. Thus, strengthening endogenous adaptive antitumour immunity is critical for improving the outcome of ablation therapy and post-ablation immune therapy. Here we present a hydrogel microsphere vaccine that amplifies post-ablation anti-cancer immune response via releasing its cargo of FLT3L and CD40L at the relatively lower pH of the tumour bed. The vaccine facilitates migration of the tumour-resident type 1 conventional dendritic cells (cDC1) to the tumour-draining lymph nodes (TdLN), thus initiating the cDC1-mediated antigen cross-presentation cascade, resulting in enhanced endogenous CD8+T cell response. We show in an orthotopic pancreatic cancer model in male mice that the hydrogel microsphere vaccine transforms the immunologically cold tumour microenvironment into hot in a safe and efficient manner, thus significantly increasing survival and inhibiting the growth of distant metastases.