Background

Soil salinization, which is the accumulation of water-soluble salts in the soil solum to the extent that agricultural production and environmental health are affected, is of major international concern. Almost 3% of the global soil area is affected by salinization and approximately 3.6% of China’s soil resources are classified as saline-alkali [1, 2]. It is difficult to increase food production to meet the demand from the growing world population by expanding the area of arable land. Improvement of plant productivity in saline-alkali soils is a viable alternative means of attaining food security.

Microbiomes are essential components of soil ecosystems and play a fundamental role in the direct and indirect maintenance of soil fertility and nutrient cycling, and in plant and animal health [3,4,5,6,7]. Introduction of beneficial microorganisms to the soil to promote plant growth and nutrient absorption is an effective strategy to improve land productivity [8, 9]. Bacterial inoculants play an important role in promoting nutrient absorption and photosynthetic activity. For example, Egamberdiyeva [10] observed that maize roots inoculated with Pseudomonas, Bacillus, and Mycobacterium species in nutrient-deficient soil showed enhanced efficiency in the uptake of nutrients (nitrogen, phosphorus, and potassium) than in soil lacking bacterial inoculants. Nutrient availability is crucial for soil microbial communities, especially for bacterial communities [11]. The availability of soil nitrogen and phosphorus affects plant diversity, and bacterial community diversity and structure [12,13,14,15].

Alfalfa (Medicago sativa L.) is an important leguminous forage, which is widely planted in saline soil because of its excellent adaptability, and is considered to increase the soil organic matter content and improve the properties of saline soil [16,17,18]. The higher osmotic potential and unbalanced ion concentration in saline soil severely hinder water and nutrient absorption by plants [19]. Salinization significantly affects the relative abundance of soil bacteria, such as Firmicutes, which increase the incidence of bacterial wilt in potato [20, 21]. A recent experiment on fertilization of saline soil indicated that the bacterial community plays a crucial role in improving the yield of alfalfa [22]. Generally, 10%–40% of the total applied fertilizer is absorbed by plants and the remaining 60%–90% is lost as a result of leaching, denitrification, and volatilization. In this regard, fertilizer application to increase food production is considered environmentally harmful and unsustainable [8, 23]. Microbial inoculants offer a novel approach for improving agricultural productivity and maintaining ecosystem health [24, 25].

The soil microbiome comprises the microbial communities in the soil and their effects on the soil environment [5]. Ecologists are familiar with the dynamics of animal and plant communities, such as their introduction and domestication, pest control, landscape design, grazing, and fishing, but the dynamics of microbial communities are less well understood [26]. Advances in gene-sequencing technologies have helped to enhance our understanding of soil microbial diversity and facilitate the control of targeted microorganisms in soil processes [3, 27]. Although previous studies on the dynamics of microbial communities are limited, a growing body of research has revealed that microbial communities are broadly identifiable, especially those from similar habitats [26, 28,29,30]. Whether the productivity of saline soil can be improved by predicting the dynamic changes in the soil microbial community or by targeting the microbial composition remains uncertain.

A previous meta-analysis of 31 studies on the effects of inorganic and organic fertilizers on soil microbial diversity revealed that, in all studies, the microbial diversity showed high residual heterogeneity, suggesting that detailed investigations were needed to fully understand the effects of fertilization regimes on microbial diversity and ecosystem function [31]. Therefore, in the present study, high-throughput sequencing technology was used to analyze the soil bacterial communities in coastal saline soil treated with different fertilizers. The aim was to screen the most important bacteria that affect alfalfa yield and provide a basis for efficient utilization of soil resources in saline regions.

Materials and methods

Site description and experimental design

The experiment was conducted at Dagang Farm (38°83′ N, 117°45′ E), which is close to Bohai Bay, from May 2016 to September 2019. The area has a temperate monsoon climate, with annual rainfall of 522 mm (primarily distributed between May and September), and evaporation of 2070 mm. The average annual temperature is 14.5℃, and the mean maximum/minimum temperature in the hottest/coldest month is 26.8°C (July)/-3.4°C (January). The growing season is approximately from April to October. The soil type is coastal saline-alkali soil (Entisol in the US soil classification system), the pH is 8.21, salinity is 2.78 g kg−1, organic carbon content is 9.84 g kg−1, available nitrogen is 49.8 mg kg−1, available phosphorus is 6.27 mg kg−1, available potassium is 134.0 mg kg−1, available calcium is 247.3 mg kg−1, and available sodium is 0.892 g kg−1. The experimental plot was established in May 2016 and the sowing rate was 18 kg hm−2. The alfalfa cultivar used in the experiment was ‘Gibraltar’, which has a fall dormancy score of 2 (provided by DLF Seed Industry Co., Ltd.).

The fertilization treatments chosen for this study were: fulvic acid potassium (FAP; mineral origin and fulvic acid ≥ 50%, K2O ≥ 12%), fulvic acid potassium + wood vinegar (FAPWV), fulvic acid potassium + Bacillus megaterium (FAPB), bio-charcoal (BC; derived from bamboo charcoal pyrolysis at 500–600°C), diammonium phosphate (DAP), and no fertilizer (CK). A total of 18 plots were established, comprising 6 fertilization treatments × 3 replications. Each plot was 6 m × 6 m (36 m2). Fertilizer was applied to the soil surface in each spring with irrigation (see Table 1 for details). During the experiment, standard cultivation and management practices were applied, and weeds and insects were removed regularly. Fifteen harvest cuts of alfalfa were performed in July (T1607), August (T1608), and September (T1609) in 2016, in May (T1705), July (T1707), August (T1708) and September (T1709) in 2017, in May (T1805), July (T1807), August (T1808) and September (T1809) in 2018, in May (T1905), July (T1907), August (T1908) and September (T1909) in 2019. The cutting criterion was that approximately 10% of alfalfa was in boom. Detailed weather information for the experiment plot during the study period is presented in Table 2.

Table 1 Experimental treatments applied in the study (all values kg hm−2)
Table 2 Temperature and precipitation at the experimental plot during the study period

Data collection

Prior to cutting, the forage sample composition was determined in a 1 m × 1 m quadrat in each plot with a stubble height of 5 cm. Dry matter yield was determined by drying approximately 500 g of the fresh forage sample at 65 °C for 24 h to a constant weight. Soil samples were collected after the harvest in July, August, and September 2016, and in May and September 2017. A five-point sampling method was used to collect soil cores from each plot, and then the five soil samples were mixed to form one repeat sample. The soil samples were passed through a 1-mm mesh screen and then placed in sterile polyethylene tubes. These tubes were placed in an incubator (filled with liquid nitrogen) and then stored at − 80 °C before DNA extraction.

Soil samples from the 18 plots were collected after the last harvest in September 2019. In each plot, 10 randomly distributed soil cores (to 10 cm depth and 3.2 cm in diameter) were collected with a sampling probe and pooled. The soil samples were sieved through a 2-mm mesh at the sampling site and were used to estimate soil available nitrogen (the sum of extractable soil ammonium (NH4+-N) and nitrate (NO3-N) concentrations) and available phosphorus contents. Soil NH4+-N was extracted with 1 M KCl, NO3-N was extracted with 1 M NH4Cl, soil available phosphorus was extracted with 0.5 M NaHCO3, and all parameters were determined with a Complete Soil Kit (SKW500, Palintest). The extractable NH4+-N, NO3-N, and available phosphorus concentrations were converted to a dry mass basis using soil moisture data.

DNA extraction and PCR amplification

Soil DNA was extracted from 0.25 g of each soil sample using the PowerSoil® DNA Isolation Kit (MO BIO Laboratories, Carlsbad, CA, USA) in accordance with the manufacturer’s instructions. Then DNA sample was cleaned with the PowerClean® DNA Clean-Up Kit ((MO BIO Laboratories). The DNA concentration and purity were quantified with a NanoDrop ND-1000 spectrophotometer (NanoDrop Technologies, Wilmington, DE, USA).

We used the primer set 338F (5′-ACTCCTACGGGAGGCAGCAG-3′) and 806R (5′- GGACTACHVGGGTWTCTAAT-3′) to amplify the V3-V4 regions of the bacterial 16S rRNA gene [32]. PCR reactions were performed in triplicate in a 25 μL volume containing 12.5 μL of 2 × Taq PCR MasterMix, 3 μL bovine serum albumin (2 ng uL−1), 1 μL (5 μM) of each primer, and 30 ng of template DNA under the following conditions: pre-denaturation at 95 °C for 5 min, 28 cycles at 95 °C for 45 s, annealing at 55 °C for 50 s and elongation at 72 °C for 45 s with a final extension at 72 °C for 10 min, and holding at 4 °C. After amplification, PCR products were detected in 2% (w/v) agarose gel and the size of each amplicon was not less than 550 bp.

Illumina MiSeq sequencing

The PCR amplicons were extracted from 2% agarose gels and purified with the AxyPrep DNA Gel Extraction Kit (Axygen Biosciences, Union City, CA, USA), then quantified with QuantiFluor™-ST (Promega, Madison, WI, USA). The purified amplicons were pooled in equimolar amounts, and then were paired-end sequenced (2 × 250) by Allwegene Company (Beijing, China) using the MiSeq PE300 platform (Illumina, San Diego, CA, USA).

Processing of sequencing data

Raw reads were first demultiplexed and quality filtered by USEARCH Version 8.1 (http://www.drive5.com/usearch/) [33], in which the sequences containing fewer than 3 consecutive bases or obtaining a quality score less than 20 were excluded, and sequences with chimeras were also removed. The optimized reads were clustered into operational taxonomic units (OTUs) using UPARSE 7.1 at a threshold of 97% sequence similarity [33]. To compare all samples at the same sequencing level, the minimum reads number was adopted to subsample sequences from all other samples. Subsequently, effective sequences were aligned against the SILVA database (http://www.arb-silva.de). Taxa were identified down to phylum, class, order, family, and genus levels using the Ribosomal Database Project (RDP; http://rdp.cme.msu.edu/) Bayesian classifier at the 70% threshold.

Based on the OTUs information, alpha diversity indices of community diversity (Shannon index), community richness (Chao estimator), and sequencing depth (Good’s Coverage) were calculated with Mothur (http://www.mothur.org/wiki). To detect the potential biomarkers, the linear discriminant analysis (LDA) effect size (LEfSe) method (http://huttenhower.sph.harvard.edu/lefse/) was used based on a normalized relative abundance matrix. The LEfSe method uses the Kruskal–Wallis test to identify features with significant differences between different treatments and performs LDA to evaluate the effect size of each feature [34]. A LDA threshold score of 3 and a significant α of 0.05 were applied for biomarker detection. In addition, the Kruskal–Wallis and Tukey–Kramer tests were used to compare the differences in functional groups among the different treatments with the FAPROTAX database [35].

Statistical analysis

A one-factor analysis of variance (fertilizer or cutting times), as implemented in SPSS 20.0 (SPSS, Inc., Chicago, IL, USA), was conducted to analyze the yield, relative abundance, and alpha diversity data among the treatments. Duncan’s multiple range test was then performed using least significant differences or Tamhane’s T2 post hoc test. The threshold for determining the significant differences was P < 0.05.

Results

Effects of different fertilizers on alfalfa yield and soil nutrition content

The alfalfa yield at each cutting time and the annual yield from 2016 to 2019 are listed in Table 3. A significant difference was detected among the six fertilizer treatments in yield of T1607, total yield of 2016, total yield of 2017, and total yield of 2016–2019, but no significant differences were observed among other cutting times. The maximum yield was observed in the FAP treatment in T1607 (5.17 t hm−2), whereas the BC treatment had the lowest yield (3.70 t hm−2). In 2016, the annual yield of FAPB was highest at 14.73 t·hm−2, whereas the annual yield of the BC treatment was lowest at 10.16 t hm−2. The annual yields in the FAP and FAPB treatments in 2017 were the highest (23.12 and 22.59 t·hm−2, respectively), and were significantly higher than those of the other four treatments. Similarly, the total yield from 2016 to 2019 in the FAP and FAPB treatments was the highest at 67.90 and 68.37 t hm−2, respectively, which represented an increase of 19.7% and 20.5% over the CK (Table 3).

Table 3 Alfalfa yield in the six fertilizer treatments at different cutting times

Figure 1 summarizes the effects of the six fertilization treatments on soil available nitrogen and phosphorus contents, as well as the relationship between total yield from 2016 to 2019 and each nutrient. The contents of soil available nitrogen and phosphorus under the FAPB and FAPWV treatments were highest, and were significantly higher than those of the BC, DAP, and CK (Fig. 1a). Pearson correlation analysis revealed that the soil available nitrogen and phosphorus contents were significantly correlated with total yield of 2016–2019 (Fig. 1b and c).

Fig. 1
figure 1

Effects of different fertilizers treatments on soil nitrogen and potassium and their relationship with yield. FAP, fulvic acid potassium; FAPWV, fulvic acid potassium + wood vinegar; FAPB, fulvic acid potassium + Bacillus megaterium; BC, bio-charcoal; DAP, diammonium phosphate; CK, no fertilizer. Different upper-case and lower-case letters above bars in a represent significant differences in available nitrogen and phosphorus contents between fertilizer treatments. The dotted line in b and c represents the 95% confidence interval

Effects of cutting times on soil bacterial community structure

No significant effect on alfalfa yield was observed among the fertilizer treatments (Additional file 1: Fig. S1), but significant differences were detected among the cutting times (Fig. 2a). T1705 had the highest yield at 6.69 t hm−2, which was significantly higher than that of T1608 (4.42 t hm−2), T1607 (4.21 t hm−2), T1609 (3.68 t hm−2), and T1709 (3.14 t hm−2).

Fig. 2
figure 2

Alfalfa yield (a) and relative abundance of soil bacterial taxa (b) among different cutting times. Bars and error bars in a indicate the mean and SE (n = 18). Different lower-case letters above bars indicate a significant difference between cutting times

A total of 3,067,467 quality-filtered and chimera-checked 16S rRNA gene sequences were obtained with an average length of 418 bp across all samples. The number of 16S rRNA sequences obtained per sample varied from 17,487 to 161,577. In total, 8824 bacterial OTUs were detected from the 90 DNA samples (Additional file 2). At the phylum level, Proteobacteria, Acidobacteria, and Actinobacteria were the principal bacterial communities detected in the soil samples, and collectively accounted for approximately 60% of the total bacterial abundance (Fig. 2b and Additional file 1: Fig. S1).

PERMANOVA tests confirmed that the bacterial community structures of T1607, T1608, T1609, T1705, and T1709 differed significantly (R2 = 0.519, p = 0.001; Fig. 3). Bacterial diversity index values differed significantly among the five cutting times. The Shannon index indicated that the bacterial community diversity of T1709 was significantly higher than those of the other four fertilizer treatments (Fig. 4a). The Chao estimator indicated that the relative bacterial abundance of T1609 was significantly higher than those of T1608 and T1705 (Fig. 4b).

Fig. 3
figure 3

Nonmetric multidimensional scaling ordination based on the mean abundance value of the bacterial communities in the five cutting time treatments. A permutational multivariate analysis of variance (PERMANOVA) was performed to evaluate the significance of differences in the community structures among the cutting times

Fig. 4
figure 4

Indices of bacterial community diversity at the five cutting times. a Shannon index and b Chao estimator. Bars and error bars in a and b indicate the mean and SE (n = 18). Different lower-case letters above bars indicate a significant difference between cutting times

Response of bacterial community composition to cutting time

The LEFSe tool was used to identify specialized bacterial communities in the various samples (Fig. 5). Significant indicator groups, determined with the screening criteria LDA (linear discriminant analysis) ≥ 3 and p < 0.05, are shown in Fig. 6. In T1607, only the Proteobacteria phylum (classes Gammaproteobacteria and Alphaproteobacteria) was significantly enriched. In T1608, the phyla Acidobacteria (class Acidobacteria), Bacteroidetes (class Sphingobacteria), and Proteobacteria (class Alphaproteobacteria) were significantly enriched. In T1609, the phylum Proteobacteria (class Deltaproteobacteria) was significantly enriched. In T1705, the phyla Actinobacteria (class Actinobacteria), Bacteroidetes (class Sphingobacteria), and Proteobacteria (classes Alphaproteobacteria and Betaproteobacteria) were significantly enriched. In T1709, three phyla comprising Planctomycetes (class Phycisphaerae), Armatimonadetes, and Parcubacteria were significantly enriched.

Fig. 5
figure 5

Cladogram showing the phylogenetic distribution of the soil bacterial lineages at the five cutting times. Different-colored shading represents different constituents. Rings in this figure indicate phylogenetic levels from phylum (outer) to genus (inner). The diameter of each circle is proportional to the abundance of the group

Fig. 6
figure 6

Indicator bacteria with log10 linear discriminant analysis (LDA) scores ≥ 3 in the soil bacterial communities for each cutting time

The relative abundance of bacterial at the phyla at the five cutting times is shown in Fig. 7. At T1607 and T1705, the relative abundance of Actinobacteria, Bacteroidetes, and Firmicutes was highest. The relative abundance of Acidobacteria and Bacteroidetes was highest at T1608, whereas that of Chloroflexi was highest at T1609. For T1709, the relative abundance of Actinobacteria, Chloroflexi, Firmicutes, and Nitrospirae was highest. Pearson correlation analysis indicated that the relative abundance of the above-mentioned seven bacterial phyla was significantly correlated with alfalfa yield (Fig. 7h).

Fig. 7
figure 7

Relative abundance of bacterial phyla at each cutting time (ag) and their correlation with yield (h). a Acidobacteria, b Actinobacteria, c Bacteroidetes, d Chloroflexi, e Planctomycetes, f Firmicutes, and g Nitrospirae. Bars and error bars in a to g indicate the mean and SE (n = 18). Different lower-case letters above bars indicate a significant difference between cutting times. * p < 0.05, ** p < 0.01, *** p < 0.001

Comparison of the change in relative abundance of the different bacterial phyla with alfalfa yield revealed that the trends for Bacteroidetes, Firmicutes, and Nitrospirae were consistent with alfalfa yield, and that the abundance of these phyla were affected by the maximum temperature and precipitation (Fig. 8). The maximum temperature-promoted increase in yield was associated with positive regulation of Bacteroidetes and Firmicutes, and decreased yield was correlated with negative regulation of Nitrospirae. Precipitation positively regulated the abundance of Bacteroidetes to increase alfalfa yield and negatively regulated Nitrospirae to reduce alfalfa yield.

Fig. 8
figure 8

Pearson correlation analysis of environmental factors, soil bacterial phyla, and alfalfa yield. Tmax, average maximum temperature; Prec, precipitation. Red arrows indicate a significant positive correlation, green arrows indicate a significant negative correlation, and gray arrows indicate a nonsignificant correlation. The values beside the lines are the correlation coefficients. *p < 0.05, **p < 0.01, ***p < 0.001

Comparison of the functional differences of the bacterial communities among the five cutting times resulted in the prediction of 58 significant functional groups (Additional file 2). Based on the differences in alfalfa yield among the treatments, 11 functional groups were consistent with the yield. These functional groups were all associated with nitrogen transformation (Fig. 9).

Fig. 9
figure 9

Kruskal–Wallis H test of functional differences in the bacterial communities among the five cutting times. The ordinate represents the function and the abscissa represents the percentage abundance of a certain function in the sample. **p < 0.01, ***p < 0.001

Discussion

The addition of organic and mineral fertilizers is beneficial to the yield of alfalfa [36,37,38]. Based on a 34-year study, Tang et al. [39] reported that the application of inorganic and organic fertilizers had a strong impact on the soil nitrogen-fixing bacteria community, and that long-term application of organic fertilizer increased the abundance of soil nitrogen-fixing bacteria in paddy fields. Surprisingly, there was no significant differences in soil bacterial diversity were detected among the six fertilizer treatments in the present study. However, fulvic acid potassium effectively increased the yield of alfalfa on saline soil and the additional of wood vinegar would reduced this benefit (Table 3), likely because the activity of certain beneficial microorganisms would be inhibited. Under salt stress, fulvic acid potassium improves the content of neutral protein, and sucrase and urease activities in rhizosphere soil, and increases the abundance of beneficial bacteria (Bacillus) [40], thus improving the soil nutrient status in soil and improving the salt tolerance of plants, but also improves the soluble protein content and antioxidant enzyme activity in cells, thereby reducing the cellular caused by malondialdehyde [41]. No significant difference in yield was observed among treatments in 2018 and 2019 after the discontinuation of fertilizer supplementation (Table 3). The significant differences in alfalfa yield among the cutting times was consistent with the results of Hakl [37], who reported that 80% of the yield difference could be explained by the year. Furthermore, He et al. [22] concluded that organic fertilizer can increase the above-ground net primary production of alfalfa by promoting root growth in saline soil.

Given the impacts on environmental safety and human health caused by traditional inorganic fertilizers, specific soil microbes are under consideration to replace fertilizers as an ecofriendly approach for sustainable agricultural development and food security [42]. Rath et al. [43] showed that the distribution of salt tolerance traits in communities could be quantified by the dose–response relationship between salinity and bacterial growth, which raises the possibility of agricultural utilization of saline soil. Soil microorganisms are beneficial in improving the adaptability of plants in saline soil. For example, Pseudomonas putida improves the absorption rates of K+, Mg2+, and Ca2+, and reduces the absorption of Na+ by cotton grown in high-salinity soil [44, 45]; Achromobacter piechaudii increases the biomass of tomato (Solanum lycopersicum L.) and pepper (Capsicum annuum L.) plants under salt stress [46]. It is noteworthy that the enrichment of soil microorganisms by plants is selective. The present results showed that the relative abundances of Bacteroidetes, Firmicutes, and Nitrospirae were significantly correlated with alfalfa yield (Fig. 6). Although Bacteroidetes are beneficial in promoting the activity of alkaline phosphatase and associated transporters to improve the efficiency of phosphorus acquisition by plants [47, 48], the opposite effect was apparent in the present study. Firmicutes have been shown to enhance tomato wilt and plant growth, but this benefit has not been observed for alfalfa [20, 49, 50]. Huang et al. [51] speculated that reducing the relative abundance of Nitrospirae and increasing the ratio of abundance of Proteobacteria/Acidobacteria in the soil was conducive for improvement of rice yield, which was consistent with the present research. Similarly, Kohler et al. [52] concluded that inoculation with alternative rhizospheric bacteria was an effective means to alleviate salt stress in salt-sensitive plants, which was mainly associated with the increase in activity of antioxidant enzymes induced by beneficial bacteria under severe salt stress. In addition, the production of exopolysaccharides by bacterial populations under adverse environmental conditions has been shown to assist plant roots to absorb water and nutrients by improving the physical properties of the rhizosphere soil, thereby increasing wheat (Triticum aestivum L.) yield [53]. In conclusion, the soil bacterial community plays an important role in plant salt tolerance, but the specific mechanisms and processes involved require further investigation.

Environmental factors profoundly contribute to shaping the soil microbiome, both spatially and temporally [5]. Precipitation, temperature, and their interaction are considered to be important factors affecting grassland microbial diversity [54], and these results were confirmed in the present research (Fig. 7). Yao et al. [55] considered precipitation and temperature to be the key drivers that shape the soil bacterial community in arid and semi-arid systems, and that climatic variables had indirect effects on the soil bacterial community mainly through their direct effects on soil properties (soil nutrients and enzyme activities). However, different ecosystems may support unique microbial populations. For example, precipitation may increase the relative abundance of Bacteroidetes (Fig. 7) [55]. Temperature change limits the ability of microorganisms to survive, disperse, and colonize soil spaces, and alters the soil microbial community structure [56]. Nottingham et al. [57] evaluated the adaptability of a tropical forest soil microbial community to long-term temperature differences and observed that the bacterial community showed growth in the temperature range from − 7.3 to 35 °C. However, bacterial diversity may be reduced when soil is incubated at 35 °C for 112 days [58]. Zogg et al. [59] reported that soil microbial communities differed across a range of temperatures. Some microbiologists hold a different opinion, arguing that microbes are more strongly impacted by plant responses rather than by abiotic manipulation. A previous study evaluated the effects of multi-factor climate change on microbial communities in vegetated and bare plots; the results showed that the bacterial community structure was significantly changed by the treatments in vegetated soils, whereas no differences in the bacterial community across the treatments were observed in bare plots [60].

Conclusions

The present results showed that supplemental fertilizer was indeed beneficial to alfalfa yield and that fulvic acid potassium had the strongest effect on alfalfa yield in coastal saline land, and this advantage was lost after fertilization was stopped. Bio-charcoal fertilizer did not play a role in increasing alfalfa yield, which may be related to its inability to provide nutrients. Significant differences in alfalfa yield were observed among the various cutting times, which were mainly associated with the relative abundance of Bacteroidetes, Firmicutes, and Nitrospirae in the soil. The maximum temperature increased the alfalfa yield by positively regulating the relative abundance of Bacteroidetes and Firmicutes, and negatively regulated the relative abundance of Nitrospirae to reduce the alfalfa yield. Precipitation increased alfalfa yield by positively regulating the relative abundance of Bacteroidetes, and negatively regulated the relative abundance of Nitrospirae to reduce alfalfa yield. The soil bacterial community plays an important role in increasing alfalfa yield in coastal saline soil, among which the microbial functional groups associated with nitrogen transformation are the most important, but the mechanism requires further investigation.