Biologically available nitrogen is a common limitation to crop productivity in modern agriculture. The endowment of higher plants with the ability to produce their own nitrogenous fertilizers has been attempted for nearly half a century1–4. Here we report that a minimal nitrogen fixation system from Paenibacillus polymyxa5–8 can be used to create an autogenic nitrogen-fixing plant through synthetic biology. We found that the genetically modified Arabidopsis containing the cassette of all nine nif genes (nifBHDKENXhesAnifV) showed some activity of nitrogenase and caused higher biomasses and chlorophyll contents than wild-type plants grown in low-nitrogen or nitrogen-free medium. Then we found that the engineered Arabidopsis displayed resistance to KCN and NaN3, two substrates of nitrogenase9. Furthermore, overexpression of electron transfer component10 in the engineered nif gene-carrying plants resulted in higher nitrogen fixation efficiency. Isotopic labeling analysis using liquid chromatography-tandem mass spectrometry showed that the fixed nitrogen can flow to amino acids and chlorophyll11, 12. This study represents a milestone toward realizing the goal of endowing plants with the capacity for self-fertilization.