A method for engineering a transgenic plant that replicates the nitrogen fixation mechanism of photosynthetic bacteria, such as cyanobacteria, or that of other bacteria, by targeting to or expressing in plant plastids bacterial nif (nitrogen fixation) genes is provided. A method for reducing the overall concentration of nitrogen in soil is provided using a plant that replicates the nitrogen fixation mechanism of photosynthetic bacteria. Progeny of a plant that replicates the nitrogen fixation mechanism of photosynthetic bacteria is also provided.