Nitrate assimilation occurs primarily in the leaves of herbaceous plants and in the roots of woody plants and legumes. Nitrate is taken up from the soil into root cells and transported into leaves via xylem. In roots and leaves, nitrate is reduced to nitrite by nitrate reductase in the cytosol and further reduced to ammonium by nitrite reductase in chloroplasts/leucoplasts using NADH/NADPH and ferredoxin as electron donors. Ammonium is then incorporated into glutamine by glutamine synthetase using ATP. Glutamine serves as a precursor for other amino acids.