Extracellular regulated protein kinases (ERK) signaling is a master regulator of cell behavior, life, and fate. Although ERK pathway is shown to be involved in T‐cell activation, little is known about its role in the development of allograft rejection. Here, it is reported that ERK signaling pathway is activated in allograft‐infiltrating T cells. On the basis of surface plasmon resonance technology, lycorine is identified as an ERK‐specific inhibitor. ERK inhibition by lycorine significantly prolongs allograft survival in a stringent mouse cardiac allotransplant model. As compared to untreated mice, lycorine‐treated mice show a decrease in the number and activation of allograft‐infiltrated T cells. It is further confirmed that lycorine‐treated mouse and human T cells are less responsive to stimulation in vitro, as indicated by their low proliferative rates and decreased cytokine production. Mechanistic studies reveal that T cells treated with lycorine exhibit mitochondrial dysfunction, resulting in metabolic reprogramming upon stimulation. Transcriptome analysis of lycorine‐treated T cells reveals an enrichment in a series of downregulated terms related to immune response, the mitogen‐activated protein kinase cascade, and metabolic processes. These findings offer new insights into the development of immunosuppressive agents by targeting the ERK pathway involved in T‐cell activation and allograft rejection.