Biological fumigation, a potential alternative to chemical fumigation, shows a wide range of prospective applications. In this study, we carried out biological fumigation experiments to evaluate its effect on alleviating consecutive cropping problems (CRPs) when compared with chemical fumigation. We designed five treatments, namely, CR (no treatment), LN (chemical fumigation with lime nitrogen), Ta (fumigation with marigold), Ra (fumigation with radish), and Br (fumigation with mustard), for soils for replanting eggplant and measured the crop's growth status, soil bacterial and fungal communities, and soil physicochemical properties. The results showed that the Br and Ra treatments formed similar microbial communities, while the Ta treatment formed unique microbial communities. The genera Olpidiomycota and Rozellomycota could be used as indicator species for the transformation process of soil microbial communities after the Br and Ta treatments, respectively. When compared with the CR and LN treatments, the soil's physicochemical properties were optimized under the Br treatment, and the soil organic matter content increased by 64.26% and 79.22%, respectively. Moreover, under the Br treatment, the soil's biological properties enhanced the bacterial and fungal alpha diversity, and the saprotrophic fungi increased with the depletion of pathotrophic fungi, while some specific probiotic microorganisms (such as Olpidiomycota, Microascales, Bacillus, etc.) were significantly enriched. In contrast, under the Ta treatment, soil nutrient levels decreased and the soil's biological indices deteriorated, whereas the bacterial diversity decreased and the pathogenic fungi increased. Among these three biological fumigation methods, the Br pre-treatment was the best way to alleviate the crop's CRPs and may be a good substitute for chemical fumigation in some situations. However, the Ta treatment also had some risks, such as the loss of land quality and reduced productivity.