Diazotrophs are key players of the globally important biogeochemical nitrogen cycle, having a significant role in maintaining ecosystem sustainability. Saline soils are pristine and unexplored habitats representing intriguing ecosystems expected to harbour potential diazotrophs capable of adapting in extreme conditions, and these implicated organisms are largely obscure. Differential occurrence of diazotrophs was studied by the nifH gene-targeted clone library approach. Four nifH gene clone libraries were constructed from different soil niches, that is saline soils (low and high salinity; EC 3.8 and 7.1 ds m(-1) ), and agricultural and rhizosphere soil. Additionally, the abundance of diazotrophic community members was assessed using quantitative PCR. Results showed environment-dependent metabolic versatility and the presence of nitrogen-fixing bacteria affiliated with a range of taxa, encompassing members of the Alphaproteobacteria, Betaproteobacteria, Deltaproteobacteria, Gammaproteobacteria, Cyanobacteria and Firmicutes. The analyses unveiled the dominance of Alphaproteobacteria and Gammaproteobacteria (Pseudomonas, Halorhodospira, Ectothiorhodospira, Bradyrhizobium, Agrobacterium, Amorphomonas) as nitrogen fixers in coastal-saline soil ecosystems, and Alphaproteobacteria and Betaproteobacteria (Bradyrhizobium, Azohydromonas, Azospirillum, Ideonella) in agricultural/rhizosphere ecosystems. The results revealed a repertoire of novel nitrogen-fixing bacterial guilds particularly in saline soil ecosystems.