Our results identify a CD8+ population selectively marked by IL-7R expression that drives antitumor memory and can be used as a potent therapy for melanoma. Here, CD8A is linked to melanoma.