Pyruvate kinase M2 (PKM2) is upregulated in multiple cancer types and contributes to the Warburg effect by unclarified mechanisms. Here we demonstrate that EGFR-activated ERK2 binds directly to PKM2 I429/L431 via the ERK2 docking groove and phosphorylates PKM2 Ser37 but not PKM1. Phosphorylated PKM2 Ser37 recruits PIN1 for cis-trans isomerization of PKM2, which leads to PKM2 binding to importin α5 and nuclear translocation. Nuclear PKM2, acting as a coactivator of β-catenin, induces c-Myc expression, resulting in the upregulation of GLUT1, LDHA, and, in a positive feedback loop, PTB-dependent PKM2 expression. Replacement of wild type PKM2 with a nuclear translocation-deficient mutant (S37A) blocks the EGFR-promoted Warburg effect and brain tumor development. In addition, levels of PKM2 S37 phosphorylation correlate with EGFR and ERK1/2 activity in human glioblastoma specimens. Our findings highlight the importance of nuclear functions of PKM2 in the Warburg effect and tumorigenesis.