Liver cancer patients with low NSUN2 and high AGT exhibited significantly improved overall survival rates and higher immune infiltration.<h4>Conclusions</h4>This study unveils novel regulatory function of m<sup>5</sup>C-modified AGT in modulating the liver TME that could be helpful for improving liver cancer prognosis and immunotherapy. This evidence concerns the gene NSUN2 and liver cancer.