The effects of continuous cropping and rotation cropping, two important tobacco cultivation practices, on soil microbial communities at different stages remain unclear. Different planting patterns have been shown to influence soil physical and chemical properties, which in turn can affect the composition and diversity of soil microbial communities. In order to investigate the impact of different planting methods on soil microbial community structure, we selected two representative planting methods: continuous cropping (tobacco) and rotational cropping (tobacco-maize). These methods were chosen as the focal points of our research to explore the potential effects on soil microbial communities. High-throughput sequencing technology was employed to investigate the structure of soil microbial communities, as well as their relationships with soil environmental factors, by utilizing the 16S rRNA, ITS, and 18S genes. Furthermore, the interaction among microorganisms was explored through the application of the Random Matrix Theory (RMT) molecular ecological network approach. There was no significant difference in α diversity, but significant difference in β diversity based on Jaccard distance test. Compared to continuous cropping, crop rotation significantly increased the abundance of beneficial prokaryotes Verrucomicrobia and Rhodanobacter. These findings indicate that crop rotation promotes the enrichment of Verrucomicrobia and Rhodanobacter in the soil microbial community. AP and NH4-N had a greater effect on the community structure of prokaryotes and fungi in tobacco soil, while only AP had a greater effect on the community structure of protist. Molecular ecological network analysis showed that the network robustness and Cohesion of rotation were significantly higher than that of continuous cropping, indicating that the complexity and stability of molecular ecological networks were higher in the rotational, and the microbial communities cooperated more effectively, and the community structure was more stable. From this point of view, rotational cropping is more conducive to changing the composition of soil microbial community, enhancing the stability of microbial network structure, and enhancing the potential ecological functions in soil.