Hepatitis B virus (HBV) infection playsa significant role in the etiology and progression of liver‐relatedpathologies, encompassing chronic hepatitis, fibrosis, cirrhosis, and eventual hepatocellularcarcinoma (HCC). Notably, HBV infection stands as the primary etiologicalfactor driving the development of HCC. Given the significant contribution ofHBV infection to liver diseases, a comprehensive understanding of immunedynamics in the liver microenvironment, spanning chronic HBV infection,fibrosis, cirrhosis, and HCC, is essential. In this review, we focused on thefunctional alterations of CD8+ T cells within the pathogenic livermicroenvironment from HBV infection to HCC. We thoroughly reviewed the roles ofhypoxia, acidic pH, metabolic reprogramming, amino acid deficiency, inhibitory checkpointmolecules, immunosuppressive cytokines, and the gut‐liver communication in shapingthe dysfunction of CD8+ T cells in the liver microenvironment. Thesefactors significantly impact the clinical prognosis. Furthermore, we comprehensivelyreviewed CD8+ T cell‐based therapy strategies for liver diseases,encompassing HBV infection, fibrosis, cirrhosis, and HCC. Strategies includeimmune checkpoint blockades, metabolic T‐cell targeting therapy, therapeuticT‐cell vaccination, and adoptive transfer of genetically engineered CD8+ T cells, along with the combined usage of programmed cell death protein‐1/programmeddeath ligand‐1 (PD‐1/PD‐L1) inhibitors with mitochondria‐targeted antioxidants.Given that targeting CD8+ T cells at various stages of hepatitis Bvirus‐induced hepatocellular carcinoma (HBV + HCC) shows promise, we reviewedthe ongoing need for research to elucidate the complex interplay between CD8+ T cells and the liver microenvironment in the progression of HBV infection toHCC. We also discussed personalized treatment regimens, combining therapeuticstrategies and harnessing gut microbiota modulation, which holds potential forenhanced clinical benefits. In conclusion, this review delves into the immunedynamics of CD8+ T cells, microenvironment changes, and therapeuticstrategies within the liver during chronic HBV infection, HCC progression, andrelated liver diseases.