The ecological effect of earthworms on the fate of soil pentachlorophenol (PCP) differs with species. This study addressed the roles and mechanisms by which two earthworm species (epigeic Eisenia fetida and endogeic Amynthas robustus E. Perrier) affect the soil microbial community and enzyme activity during the bioremediation of PCP-contaminated soils. A. robustus removed more soil PCP than did E. foetida. A. robustus improved nitrogen utilisation efficiency and soil oxidation more than did E. foetida, whereas the latter promoted the organic matter cycle in the soil. Both earthworm species significantly increased the amount of cultivable bacteria and actinomyces in soils, enhancing the utilisation rate of the carbon source (i.e. carbohydrates, carboxyl acids, and amino acids) and improving the richness and evenness of the soil microbial community. Additionally, earthworm treatment optimized the soil microbial community and increased the amount of the PCP-4-monooxygenase gene. Phylogenic classification revealed stimulation of indigenous PCP bacterial degraders, as assigned to the families Flavobacteriaceae, Pseudomonadaceae and Sphingobacteriacea, by both earthworms. A. robustus and E. foetida specifically promoted Comamonadaceae and Moraxellaceae PCP degraders, respectively.