ObjectiveTo investigate the alleviating effect of calcium cyanamide (CaCN2) soil fumigation on replanting problems of Rehmannia glutinosa.MethodsNewly soil (NP) was used as the control group, while three treatment groups were established: replanted soil (RP), newly soil treated with CaCN2 (120 g·m², tillage depth 25 cm) (NPCC), and replanted soil treated with CaCN2 (RPCC). R. glutinosa was cultivated in all groups. At harvest, the tuber agronomic traits (number of enlarged roots, maximum root diameter, fresh weight, dry weight) were measured. The content of catalpol and rehmannioside D was quantified by ultra-high-performance liquid chromatography (UPLC) to evaluate medicinal quality. Rhizosphere soil available nutrients and enzyme activities were analyzed by assay kits. The community structure and composition of fungi and bacteria in rhizosphere soil were assessed via internal transcribed spacer 2 (ITS2) sequencing and 16S rDNA sequencing, respectively.ResultsCompared with NP, the RP group showed obviously reduced in tuber agronomic traits and quality indicators (P0.05). However, the RPCC group showed significant improvement in agronomic traits and a notable increase in rehmannioside D content compared to RP (P0.05). The contents of available phosphorus and potassium in RPCC and NP groups were obviously lower than those in RP (P0.05). The polyphenol oxidase soil (S-PPO) activity in RP was obviously lower than in NP (P0.05), while sucrose soil (S-SC), acid phosphatase soil (S-ACP), and S-PPO activities in RPCC were obviously higher than in RP (P0.05). Microbial richness and diversity in RP were obviously higher than in NP (P0.05), whereas no significant differences were observed between the RPCC and NP. The relative abundances of fungal genera Nectria, Myrothecium, Tomentella, and bacterial genus Skermanella were obviousl lower in RPCC and NP than in RP (P0.05). Correlation analysis that S-ACP activity was positively correlated with the content of rehmannioside D (P0.05). Fungal genera Engyodontium and Alternaria, and bacterial genera Pir4lineage, Pirellula, Methyloversatilis, Brevundimonas, Ralstonia, and Acidibacter were obviously positively correlated with tuber dry weight (P0.05). Conversely, fungal genera Pseudaleuria, Nectria, Haematonectria, Ceratobasidium, and bacterial genera Streptomyces, Skermanella, RB41, Gemmatimonas, and Bacillus were obviously negatively correlated with dry weight (P0.05). The fungal genus Alternaria and bacterial genera Brevundimonas, Ralstonia, Acidibacter, and Dongia showed positive correlations with medicinal quality of R.glutinosa tuber, while fungal genera Pseudaleuria, Nectria, Stachybotrys, Fusarium, Gibberella, Ceratobasidium, and bacterial genera Sphingomonas, Skermanella, RB41, Gemmatimonas, and Bacillus were obviously negatively correlated (P0.05).ConclusionCaCN2 soil fumigation can significantly improve enzyme activities in replanted Rehmannia rhizosphere soil, enhance the utilization of available nutrients, reshape microbial community structure of replanted R.glutinosa at the family and genus level, and notably improve tuber agronomic traits and medicinal quality. This study provides a novel approach to alleviating replanting problems and offers insights for the integrated development of standardized cultivation techniques, including soil disinfection, nutrient-targeted regulation, and microbial inoculant application.