NOVELTY - Synthesizing nitrogen-containing compounds, comprises: introducing a fuel stream (105) into an anode (127) of a molten carbonate fuel cell (120), and/or an internal reforming element; introducing a cathode inlet stream into a cathode (129) of the fuel cell; generating electricity within the fuel cell; generating an anode exhaust; separating carbon dioxide from at least a portion of the anode exhaust to produce a carbon dioxide-rich stream and a carbon dioxide-depleted gas stream; and using at least a portion of the carbon dioxide-depleted gas stream in an ammonia synthesis process.    USE - The method is useful for synthesizing nitrogen-containing compounds such as urea (all claimed), ammonium nitrate and nitric acid.    ADVANTAGE - The method is capable of simply, economically and energy efficiently synthesizing the nitrogen-containing compounds, while avoiding loss (exhaust) of unburned fuel to the environment, and reducing or minimizing the need to recompress any of the purge or waste streams that can be sufficiently pressurized for molten carbonate fuel cell use.    DETAILED DESCRIPTION - Synthesizing nitrogen-containing compounds, comprises: introducing a fuel stream (105) comprising a reformable fuel into an anode (127) of a molten carbonate fuel cell (120), and/or an internal reforming element associated with the anode; introducing a cathode inlet stream comprising carbon dioxide and oxygen into a cathode (129) of the fuel cell; generating electricity within the molten carbonate fuel cell; generating an anode exhaust comprising hydrogen and carbon dioxide; separating carbon dioxide from at least a portion of the anode exhaust to produce a carbon dioxide-rich stream having a carbon dioxide content greater than a carbon dioxide content of the anode exhaust and a carbon dioxide-depleted gas stream having an hydrogen content greater than an hydrogen content of the anode exhaust; and using at least a portion of the carbon dioxide-depleted gas stream in an ammonia synthesis process.    DESCRIPTION OF DRAWING(S) - The figure shows a schematic view of a molten carbonate fuel cell.    Fuel stream (105)    Molten carbonate fuel cell (120)    Anode (127)    Cathode (129)    Water gas shift reactor. (130)