Tissue-resident memory T (TRM) cells preferentially reside in peripheral tissues, serving as key players in tumor immunity and immunotherapy. The lack of effective approaches for expanding TRM cells and delivering these cells in vivo hinders the exploration of TRM cell-mediated cancer immunotherapy. Here, we report a nanoparticle artificial antigen-presenting cell (nano-aAPC) ex vivo expansion approach and an in vivo delivery system for TRM cells. Using the nano-aAPC platform, we expanded functional antigen-specific murine and human TRM-like CD8+ T cells ex vivo. We also developed an injectable macroporous hyaluronic acid (HA) hydrogel to deliver TRM-like cells. TRM-like cells delivered in the optimized HA hydrogel trigger robust local and systemic antitumor immunity and show synergistic effects with anti-PD-1 treatment. Our findings suggest that nano-aAPC-induced TRM-like cells, coupled with a hydrogel delivery system, offer an efficient way to advance the understanding of TRM cell-mediated cancer therapy.