Here we perform a functional screen of metabolic genes that rescue tumour cells from effector T cell cytotoxicity, and identify the embryo- and tumour-specific folate cycle enzyme methylenetetrahydrofolate dehydrogenase 2 (MTHFD2). This evidence concerns the gene MTHFD2 and neoplasm.