The gut microbiota system plays vital role in liver diseases. This study aimed to address the diversity of gut microbiota and its correlations with clinical parameters in healthy individuals, chronic liver disease (CLD), and hepatocellular carcinoma (HCC) patients. Fecal specimens of 9 healthy individuals, 11 CLD, and 21 HCC were collected. The diversity of gut microbiota was examined by PCR and Illumina MiSeq sequencing and analyzed using 16S rRNA gene sequencing database. The correlations between gut microbiota and the clinical parameters of participants were also addressed. Compared to healthy individuals, Firmicutes on a phylum level decreased in CLD and HCC patients and Proteobacteria increased (p < 0.05). The composition of Blautia on a genus level in CLD and HCC patients significantly decreased compared to healthy controls (p < 0.05). Firmicutes composition was negatively associated with age and number of males (p < 0.05), and was positively associated with monocytes, high density lipoprotein cholesterol (HDL-C), and estimated glomerular filtration rate (eGFR) levels (p < 0.05). On a genus level, Blautia composition was negatively associated with cirrhosis, age, and number of males (p < 0.01); while it was positively associated with red blood cells (RBC), triglycerides, HDL-C, and lymphocytes levels (p < 0.05). Conclusively, there was a significant compositional difference in 3 gut microbiota in CLD and HCC patients compared with healthy subjects.Firmicutes and Blautia in gut microbiota system lessened in CLD and HCC patients. Clinical biochemical parameters have an impact on the diversity of gut microbiota in liver diseases.