NOVELTY - The process for treating a natural gas having methane and nitrogen, comprises withdrawing the nitrogen from the natural gas to obtain a natural gas depleted in nitrogen and a nitrogen rich stream, transforming a part of nitrogen depleted natural gas to obtain a first gaseous mixture by vapor-reforming reaction in presence of water, reacting the first gaseous mixture with methanol to produce an effluent, and contacting the nitrogen rich stream with a hydrogen rich stream to produce a second gaseous mixture. The effluent is separated in a methanol rich stream and the hydrogen rich stream.    USE - The process is useful for treating a natural gas having methane and nitrogen (claimed), with enhancement in the nitrogen and carbon dioxide for producing formic ester and ammonia or urea.    ADVANTAGE - The process improves the extraction profitability of natural gas thus enhancing the transformation of all or a part of molecular nitrogen content in the natural gas.    DETAILED DESCRIPTION - The process for treating a natural gas having methane and nitrogen, comprises withdrawing the nitrogen from the natural gas to obtain a natural gas depleted in nitrogen and a nitrogen rich stream, transforming a part of nitrogen depleted natural gas to obtain a first gaseous mixture by vapor-reforming reaction in presence of water, reacting the first gaseous mixture with methanol to produce an effluent, and contacting the nitrogen rich stream with a hydrogen rich stream to produce a second gaseous mixture. The effluent is separated in a methanol rich stream and the hydrogen rich stream. The second gaseous mixture is purified to obtain an ammonia rich stream. The first gaseous mixture has hydrogen to carbon monoxide molar ratio of 3-4 moles/mole. The vapor-reforming reaction is adjusted so that a part of methane is not consumed. The traces of carbon monoxide and carbon dioxide are reacted with hydrogen in the contacting step to eliminate the traces. The transformation of part of nitrogen depleted natural gas is operated at a pressure and temperature of 5-60 bars and 500-1000?oC. The reacting step is operated at a pressure and temperature of 30-150 bars and 100-400?oC. The contacting step is operated at a pressure of 5-150 bars and at a temperature of 100-500?oC. The natural gas is deacidified to obtain a deacidified natural gas and a carbon dioxide rich stream. Contacting 2-4 moles of ammonia with 1 mole of carbon dioxide to produce carbamate by a chemical reaction at a pressure and a temperature of 100-250 bars and 100-250?oC, and chemically decomposing the carbamate to produce urea at a pressure of 2-20 bars.    DESCRIPTION OF DRAWING(S) - The figure shows a first mode of production of above process with the production of ammonia.    Conveying the natural gas to a deacidification unit having the chemical solvents (1)    Conveying the solvent to a regeneration unit (2)    Converting hydrogen sulfide into sulfur (3)    Evacuation of carbon dioxide (4)    Regenerating the solvent. (5)