SHMT2 is highly expressed in GC and is associated with a poor prognosis. The exploration of its mechanism may be related to tumour proliferation, DNA repair and replication. SHMT2 is an independent prognostic risk factor and a potential biomarker for the diagnosis and treatment of GC.