Objective To investigate the prognostic value of serum gamma-glutamyltransferase-to-lymphocyte ratio (GLR) in patients with chronic hepatitis B virus (HBV)-associated hepatocellular carcinoma (HCC) after radical resection. Methods The clinical data of HBV-HCC patients diagnosed and treated with radical hepatectomy in the Second Affiliated Hospital of Chengdu Medical College (China National Nuclear Corporation 416 Hospital) from January 2012 to December 2022 were retrospectively collected and analyzed. Log-rank and multivariate Cox proportional hazard model were performed to analyze the risk factors affecting overall postoperative survival (OS) and relapse-free survival (RFS) of HBV-HCC patients, and receiver operating characteristic (ROC) curve was used to evaluate the predictive value of GLR for OS and RFS of HBV-HCC patients. Results A total of 196 eligible HBV-HCC patients underwent radical hepatectomy were included. The optimal cutoff value of GLR was 182.31 through ROC curve, and 144 cases were in low GLR group and 52 cases in high GLR group. Compared with the low GLR group, ratios of preoperative portal vein tumor thrombus, China liver cancer staging (CNLC) stage Ⅲ, preoperative AFP level ≥400 ng/mL and low tumor differentiation were higher in the high GLR group (χ2=10.071, P=0.002; χ2=32.552, P<0.001). Cox proportional hazard model showed that higher maximum tumor diameter (HR=1.099, P=0.009), GLR>182.31 (≤182.31 vs. >182.31, HR=0.211, P<0.001) and low tumor differentiation grade (high+moderate vs. low, HR=0.182, P<0.001) were risk factors for postoperative OS of HBV-HCC patients, and the area under curve (AUC) of these risk factor for predicting OS of HBV-HCC patients was 0.930 [95%CI (0.884, 0.977)]. Preoperative portal vein tumor thrombus (No vs. Yes, HR=0.404, P=0.002) and GLR>182.31 (≤182.31 vs. >182.31, HR=0.435, P=0.001) were risk factors for postoperative RFS of HBV-HCC patients, and the AUC of these risk factor for predicting RFS was 0.729 [95%CI (0.654, 0.805)]. Conclusion This study preliminarily indicates that GLR is associated with postoperative prognosis of HBV-HCC patients, and GLR combined with maximum tumor diameter and tumor differentiation degree has a certain value in predicting OS.