In summary, this detailed analysis not only underscores the significance of SMGs, particularly PHGDH and SLC1A5, in cancer biology but also lays the groundwork for unravelling the complex molecular mechanisms through which serine influences the tumour microenvironment and immune architecture. This evidence concerns the gene PHGDH and cancer.