Our study demonstrates that Id2-mediated transcriptional and epigenetic modifications play a crucial role in hierarchical T-cell exhaustion, and the mechanistic insights gained may have implications for therapeutic intervention with tumor immune evasion. Here, ID2 is linked to neoplasm.