Liver cirrhosis is one of the most prevalent chronic liver disorders with high mortality. We aimed to explore changed gut microbiome and urine metabolome in compensatory liver cirrhosis (CLC) patients, thus providing novel diagnostic biomarkers for CLC. Forty fecal samples from healthy volunteers (control: 19) and CLC patients (patient: 21) were undertaken 16S rDNA sequencing. Chromatography-mass spectrometry was performed on 40 urine samples (20 controls and 20 patients). Microbiome and metabolome data were separately analyzed using corresponding bioinformatics approaches. The diagnostic model was constructed using the least absolute shrinkage and selection operator regression. The optimal diagnostic model was determined by five-fold cross-validation. Pearson correlation analysis was applied to clarify the relations among the diagnostic markers. 16S rDNA sequencing analyses showed changed overall alpha diversity and beta diversity in patient samples compared with those of controls. Similarly, we identified 841 changed metabolites. Pathway analysis revealed that the differential metabolites were mainly associated with pathways, such as tryptophan metabolism, purine metabolism, and steroid hormone biosynthesis. A 9-maker diagnostic model for CLC was determined, including 7 microorganisms and 2 metabolites. In this model, there were multiple correlations between microorganisms and metabolites. Subdoligranulum, Agathobacter, norank_f_Eubacterium_coprostanoligenes_group, Butyricicoccus, Lachnospiraceae_UCG_004, and L-2,3-Dihydrodipicolinate were elevated in CLC patients, whereas Blautia, Monoglobus, and 5-Acetamidovalerate were reduced. A novel diagnostic model for CLC was constructed and verified to be reliable, which provides new strategies for the diagnosis and treatment of CLC.