Soil polycyclic aromatic compound (PAC) pollution as a result of petroleum exploitation has caused serious environmental problems. The unclear assembly and functional patterns of microorganisms in oilfield soils limits the understanding of microbial mechanisms for PAC elimination and health risk reduction. This study investigated the polycyclic aromatic hydrocarbons (PAHs) and substituted PAHs (SPAHs) occurrence, and their impact on the bacteria-archaea-fungi community diversity, co-occurrence network and functionality in the soil of an abandoned oilfield. The results showed that the PAC content in the oilfield ranged from 3429.03 μg kg−1 to 6070.89 μg kg−1, and risk assessment results suggested a potential cancer risk to children and adults. High molecular weight PAHs (98.9%) and SPAHs (1.0%) contributed to 99.9% of the toxic equivalent concentration. For microbial analysis, the abundantly detected degraders and unigenes indicated the microbial potential to mitigate pollutants and reduce health risks. Microbial abundance and diversity were found to be negatively correlated with health risk. The co-occurrence network analysis revealed nonrandom assembly patterns of the interdomain microbial communities, and species in the network exhibited strong positive connections (59%). The network demonstrated strong ecological linkages and was divided into five smaller coherent modules, in which the functional microbes were mainly involved in organic substance and mineral component degradation, biological electron transfer and nutrient cycle processes. The keystone species for maintaining microbial ecological functions included Marinobacter of bacteria and Neocosmospora of fungi. Additionally, benzo [g,h,i]pyrene, dibenz [a,h]anthracene, indeno [1,2,3-cd]perylene and total phosphorus were the key environmental factors driving the assembly and functional patterns of microbial communities under pollution stress. This work improves the knowledge of the functional pattern and environmental adaptation mechanisms of interdomain microbes, and provides valuable guidance for the further bioremediation of PAC-contaminated soils in oilfields.