The coastal wetlands in the Yellow River Delta play a vital role in the ecological function of the area. However, the impact of primary restoration on microbial communities is not yet fully understood. Hence, this study aimed to analyze the bacterial and archaeal communities in the soil. The results indicated that Marinobacter and Halomonas were predominant in the bacterial community during spring and winter. On the other hand, Muribaculaceae and Helicobacter were prevalent during the core remediation of soil, while Inhella and Halanaerobium were predominant in non-vegetation-covered high-salinity soil. The bacterial Shannon index showed significant differences in vegetation-covered areas. For archaea, Salinigranum, Halorubrum, and Halogranum were dominant in vegetation areas, while Halolamina, Halogranum, and Halorubrum were prevalent in non-vegetation areas. The colonization of Suaeda salsa led to differences in the composition of bacteria (22.6%) and archaea (29.5%), and salt was one of the significant reasons for this difference. The microflora was more diverse, and the elements circulated after vegetation grounding, while the microbial composition in non-vegetation areas was similar, but there was potential competition. Therefore, vegetation restoration can effectively restore soil ecological function, while the microorganisms in the soil before restoration provide germplasm resources for pollutant degradation and antimicrobial development.