Although tumor-infiltrating lymphocytes (TILs) maintain their ability to proliferate, persist, and eradicate tumors, they are frequently dysfunctional in situ. By performing both whole-genome CRISPR and metabolic inhibitor screens, we identify that nicotinamide phosphoribosyltransferase (NAMPT) is required for T cell activation. NAMPT is low in TILs, and its expression is controlled by the transcriptional factor Tubby (TUB), whose activity depends on the T cell receptor-phospholipase C gamma (TCR-PLCγ) signaling axis. The intracellular level of NAD