Petroleum hydrocarbon contamination is of environmental and public health concerns due to its toxic components. Bioremediation utilizes microbial organisms to metabolism and remove these contaminants. The aim of this study was to enrich a microbial community and examine its potential to degrade petroleum hydrocarbon. Through successive enrichment, we obtained a bacterial consortium using crude oil as sole carbon source. The 16 S rRNA gene analysis illustrated the structural characteristics of this community. Metagenomic analysis revealed the specific microbial organisms involved in the degradation of cyclohexane and all the six BTEX components, with a demonstration of the versatile metabolic pathways involved in these reactions. Results showed that our consortium contained the full range of CDSs that could potentially degrade cyclohexane, benzene, toluene, and (o-,m-,p-) xylene completely. Interestingly, a single taxon that possessed all the genes involved in either the activation or the central intermediates degrading pathway was not detected, except for theNovosphingobiumwhich contained all the genes involved in the upper degradation pathway of benzene, indicating the synergistic interactions between different bacterial genera during the hydrocarbon degradation.Supplementary InformationThe online version contains supplementary material available at 10.1186/s13568-023-01541-y.