In summary, our results revealed that increased FGL1 expression in HCC affects the proportion and function of CD8+ TRM cells by binding to LAG3 on cell membranes, ultimately causing immune escape. This evidence concerns the gene LAG3 and hepatocellular carcinoma.