Nitrogen fixation involves formation of ammonium from N2, which needs a high input of energy. Biological nitrogen fixation utilizes the enzyme nitrogenase and ATP to fix nitrogen. Nitrogenase contains a Fe-protein and a Mo-Fe-protein and other metal cofactors. Soil diazotrophs possess the function of fixing atmospheric N2 into biologically available ammonium in ecosystems. In Aechaea, nitrogen fixation has been reported in some methanogens such as Methanobacteriales, Methanococcales, and Methanosarcinales. Community structure and diversity of diazotrophic are correlated with soil pH. All known organisms which involve in nitrogen-fixing which are called diazatrophs are prokaryotes, and both bacterial and archaeal domains are responsible for that. Diazotrophs are categorized into two main groups namely: root-nodule bacteria and plant growth-promoting rhizobacteria. Diazotrophs include free living bacteria, such as Azospirillum, Cupriavidus, and some sulfate reducing bacteria, and symbiotic diazotrophs such Rhizobium and Frankia. Two important parameters which may affect diazotroph communities are temperature and soil moisture in different seasons. To have sustainable agriculture, replacing expensive chemical nitrogen fertilizers with environmentally friendly ways is the most accepted practice.