Chronic infection with hepatitis B virus (HBV) causes DNA damage. An arginine (Arg)-to-glutamine (Gln) polymorphism at codon 399 in the XRCC1 gene is putatively associated with DNA damage. In a case-control study of 577 HBV surface antigen carriers with hepatocellular carcinoma (HCC) and 389 HBV carrier control subjects, we investigated the association between this polymorphism and the risk of HCC and assessed whether this association varied with glutathione S-transferase (GST) status; GSTs are involved in carcinogen metabolism. All statistical tests were two-sided. The XRCC1 Gln allele was associated with a dose-dependent increased risk of early-onset HCC (<50 years) but not with the risk of late-onset HCC (P(trend) =.01). The GSTT1-null genotype alone did not affect risk, but the GSTM1-null genotype was associated with a decreased risk for early-onset HCC. Various combinations of GSTM1 and GSTT1 genotypes differentially modified the association of XRCC1 with HCC (P(interaction) =.005); e.g., for individuals with the GSTT1-null/GSTM1-present genotype, the risk of HCC was greater for those with the Gln/Gln genotype (odds ratio = 8.07, 95% confidence interval = 1.67 to 38.93) than for those with the Arg/Arg genotype. Thus, GST status appears to affect the risk of HCC associated with this XRCC1 polymorphism.