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. The gene discussed is CD8A; the disease is hepatocellular carcinoma.