This study identified SHANK2 and TGM2 as key genes involved in the pathogenesis of PBC through transcriptome data and bioinformatics analysis. This evidence concerns the gene SHANK2 and primary biliary cholangitis.