Clinical research has suggested that chronic HBV infection exerts a certain effect on the occurrence of cardiovascular disease by regulating cholesterol metabolism in liver cells. High serum apolipoprotein B/apolipoprotein A1 (ApoB/ApoA1) ratio plays a certain role in the above regulation, and it serves as a risk factor for cardiovascular disease. However, whether the ApoB/ApoA1 ratio is correlated with chronic HBV infection and its disease progression remains unclear. In accordance with the inclusion and exclusion criteria, all 378 participants administrated at Renmin Hospital of Wuhan University from March 2021 to March 2022, fell into Healthy Control (HC) group (50 participants), Hepatocellular carcinoma (HCC) group (107 patients), liver cirrhosis (LC) group (64 patients), chronic hepatitis B (CHB) group (62 patients), chronic hepatitis C (CHC) group (46 patients) and Hepatitis E Virus (HEV) group (49 patients). Serum ApoA1 and ApoB concentrations were measured at admission, and the ApoB/ApoA1 ratio was determined. The levels of laboratory parameters in the respective group were compared and ApoB/ApoA1 ratios in HCC patients and LC patients with different severity were further analyzed. ROC curves were plotted to analyze the early diagnostic ability of ApoB/ApoA1 ratio for HBV-associated HCC. Logistic regression and restricted cubic spline analysis were used to explore the correlation between ApoB/ApoA1 ratio and LC and HCC risk. A comparison was drawn in terms of ApoB/ApoA1 ratio between the groups, and the result was expressed in descending sequence: HEV group > CHB group > LC group > HCC group > CHC group > HC group, early-stage HCC < middle-stage HCC < advanced-stage HCC, Class A LC < Class B LC < Class C LC. Serum ApoB/ApoA1 ratio combined diagnosis with AFP exhibited the capability of increasing the detection efficacy and specificity of AFP for HCC and AFP-negative HCC. The incidence of LC and HCC in the respective logistic regression model showed a negative correlation with the serum ApoB/ApoA1 ratio in CHB patients (P < 0.05). After all confounding factors covered in this study were regulated, the result of the restricted cubic spline analysis suggested that in a certain range, serum ApoB/ApoA1 ratio showed an inverse correlation with the prevalence of LC or HCC in CHB patients. Serum ApoB/ApoA1 ratio in CHB patients may be conducive to identifying high-risk patients for HCC or LC, such that LC and HCC can be early diagnosed and treated.