A method for the production of ammonia from exhaust flue gases of an oxygen-fired process, the method comprising the steps of: supplying a hydrocarbon or carbonaceous feedstock and oxygen (102, 104) to an oxygen-fired process to produce an exhaust flue gas, said exhaust flue gas comprising carbon dioxide, carbon monoxide, and hydrogen; supplying the exhaust flue gas to a first reactor, said first reactor comprising a catalyst and being configured to convert at least a portion of the carbon monoxide to carbon dioxide and produce a modified exhaust flue gas; supplying the modified exhaust flue gas to a second reactor, said second reactor comprising a catalyst and being configured to convert any remaining carbon monoxide to carbon dioxide to produce a carbon dioxide containing flue gas; supplying the carbon dioxide containing flue gas from the second reactor to a first condenser to remove water and produce a gas stream containing between 65-80 mol. % hydrogen, between 20-35 mol. % carbon dioxide and between 0-8 mol. % carbon monoxide; supplying the gas stream from the first condenser to a carbon dioxide stripper to produce a hydrogen stream and a high purity carbon dioxide stream, wherein said carbon dioxide stripper being charged with a solvent suitable for extracting carbon dioxide, said hydrogen stream contains at least 95 mol. % hydrogen and minor amounts of carbon monoxide and carbon dioxide, and said high purity carbon dioxide stream contains at least 99 mol. % carbon dioxide; supplying the hydrogen stream to a third reactor, said third reactor comprising a catalyst and being configured for production of methane from remaining amounts of carbon monoxide and carbon dioxide present in the hydrogen stream, said third reactor producing a methane product stream and a high purity hydrogen stream (157, 168) containing at least 99.9 mol. % of hydrogen; supplying the high purity hydrogen stream (157, 168) from the third reactor and nitrogen gas from an air separation unit to a fourth reactor, said fourth reactor comprising a catalyst and being configured to produce an ammonia product stream; supplying the high purity carbon dioxide stream from the carbon dioxide stripper and the ammonia from the fourth reactor to a fifth reactor, said fifth reactor being configured to produce a product stream comprising urea. supplying a hydrocarbon or carbonaceous feedstock and oxygen (102, 104) to an oxygen-fired process to produce an exhaust flue gas, said exhaust flue gas comprising carbon dioxide, carbon monoxide, and hydrogen; supplying the exhaust flue gas to a first reactor, said first reactor comprising a catalyst and being configured to convert at least a portion of the carbon monoxide to carbon dioxide and produce a modified exhaust flue gas; supplying the modified exhaust flue gas to a second reactor, said second reactor comprising a catalyst and being configured to convert any remaining carbon monoxide to carbon dioxide to produce a carbon dioxide containing flue gas; supplying the carbon dioxide containing flue gas from the second reactor to a first condenser to remove water and produce a gas stream containing between 65-80 mol. % hydrogen, between 20-35 mol. % carbon dioxide and between 0-8 mol. % carbon monoxide; supplying the gas stream from the first condenser to a carbon dioxide stripper to produce a hydrogen stream and a high purity carbon dioxide stream, wherein said carbon dioxide stripper being charged with a solvent suitable for extracting carbon dioxide, said hydrogen stream contains at least 95 mol. % hydrogen and minor amounts of carbon monoxide and carbon dioxide, and said high purity carbon dioxide stream contains at least 99 mol. % carbon dioxide; supplying the hydrogen stream to a third reactor, said third reactor comprising a catalyst and being configured for production of methane from remaining amounts of carbon monoxide and carbon dioxide present in the hydrogen stream, said third reactor producing a methane product stream and a high purity hydrogen stream (157, 168) containing at least 99.9 mol. % of hydrogen; supplying the high purity hydrogen stream (157, 168) from the third reactor and nitrogen gas from an air separation unit to a fourth reactor, said fourth reactor comprising a catalyst and being configured to produce an ammonia product stream; supplying the high purity carbon dioxide stream from the carbon dioxide stripper and the ammonia from the fourth reactor to a fifth reactor, said fifth reactor being configured to produce a product stream comprising urea.