Microplastic (MP) pollution can exert significant pressure on soil ecosystems, however, the interactive effects of MPs on soil bacterial, fungal and protist communities remains poorly understood. Soil macrofauna, such as earthworms, can be directly affected by MPs, potentially leading to a range of feedbacks on the soil microbial community. To address this, we conducted a microcosm experiment to examine the effects of conventional (i.e., polyethylene, polystyrene) and biodegradable MPs (i.e. PBAT, polylactic acid) on the structure of the soil bacterial, fungal, and protist communities in the presence or absence of earthworms. We found that MP contamination negatively affected the diversity and composition of soil microbial and protist communities, with smaller-sized conventional MPs having the most pronounced effects. For example, compared with the unamended control, small-sized polyethylene MPs both significantly reduced the Shannon diversity of soil bacteria, fungi, and protist by 4.3 %, 37.0 %, and 9.1 %, respectively. Biodegradable MPs increased negative correlations among bacteria, fungi, and protists. However, earthworms mitigated these effects, enhancing the diversity and altering the composition of these communities. They also increased the niche width and stability of the soil microbial food web network. Our study indicated that earthworms help attenuate the response of soil microorganisms to MPs stress by influencing the diversity and composition of soil microorganisms and soil physicochemical properties and underscores the importance of considering macrofauna in MPs research.