Contamination of soil by petroleum is becoming increasingly serious in the world today. However, the research on gene functional characteristics, metabolites and distribution of microbial genomes in oil-contaminated soil is limited. Considering that, metagenomic and metabonomic were used to detect microbes and metabolites in oil-contaminated soil, and the changes of functional pathways were analyzed. We found that oil pollution significantly changed the composition of soil microorganisms and metabolites, and promoted the relative abundance ofPseudoxanthomonas,Pseudomonas,Mycobacterium,Immundisolibacter,etc. The degradation of toluene, xylene, polycyclic aromatic hydrocarbon and fluorobenzoate increased in Xenobiotics biodegradation and metabolism. Key monooxygenases and dioxygenase systems were regulated to promote ring opening and degradation of aromatic hydrocarbons. Metabolite contents of polycyclic aromatic hydrocarbons (PAHs) such as 9-fluoronone and gentisic acid increased significantly. The soil microbiome degraded petroleum pollutants into small molecular substances and promoted the bioremediation of petroleum-contaminated soil. Besides, we discovered the complete degradation pathway of petroleum-contaminated soil microorganisms to generate gentisic acid from the hydroxylation of naphthalene in PAHs by salicylic acid. This study offers important insights into bioremediation of oil-contaminated soil from the aspect of molecular regulation mechanism and provides a theoretical basis for the screening of new oil degrading bacteria.Supplementary InformationThe online version contains supplementary material available at 10.1007/s42770-023-01000-7.