1. Global change and the loss of plant diversity threaten terrestrial ecosystem functionality. Microplastic pollution is considered a novel environmental stressor potentially affecting plant biomass production. However, it is poorly understood whether and how microplastic interacts with other global change factors, such as drought, to affect plant communities and the relationship between plant diversity and biomass production. 2. To unravel the above question and any underlying mechanisms, we conducted a glasshouse experiment. We assembled plant communities along a gradient of plant diversity and then subjected them to four microplastic and drought scenarios in grassland microcosms. 3. Our results showed that the positive effect of plant diversity on biomass production strongly depended on drought, whereas no significant interaction was found with microplastic, either alone or when combined with drought. Nevertheless, microplastic tended to decrease the positive diversity–biomass relationship by suppressing the shoot biomass of grasses and legumes, thereby reducing the positive selection effect. By contrast, drought significantly weakened this positive relationship by strongly reducing the shoot biomass of legumes, thereby inducing a negative complementarity effect and ultimately a negative net diversity effect. Both microplastic and drought decreased community biomass across all plant diversity levels, but microplastic could alleviate the negative effect of drought on community biomass by enhancing the shoot biomass of legumes. 4. Synthesis. Our findings reveal that microplastic and drought influence the positive effects of plant diversity on plant biomass production. Moreover, our study suggests that the mechanisms by which plant diversity affects productivity are differently sensitive to microplastic and drought. We highlight the importance of legumes in protecting and maintaining biodiversity and ecosystem functions in the face of microplastic pollution and drought risks.