NOVELTY - The method comprises converting a part of carbon dioxide containing a natural gas to a solid state by cooling the natural gas in a heat exchange module (1, 2), depositing the carbon dioxide in the heat exchange module, recovering a flow of natural gas impoverished with carbon dioxide from an outlet of the heat exchange module, melting the solid carbon dioxide in the heat exchange module by heating, and recovering a flow of liquid carbon dioxide from the outlet of the heat exchange module.    USE - The method is useful for treating a natural gas containing carbon dioxide.    ADVANTAGE - The method is capable of simply, economically and energy-efficiently treating the natural gas containing carbon dioxide in an environmental friendly manner without the significant loss of hydrocarbon.    DETAILED DESCRIPTION - The method comprises converting a part of carbon dioxide containing a natural gas to a solid state by cooling the natural gas in a heat exchange module (1, 2), depositing the carbon dioxide in the heat exchange module, recovering a flow of natural gas impoverished with carbon dioxide from an outlet of the heat exchange module, melting the solid carbon dioxide in the heat exchange module by heating, recovering a flow of liquid carbon dioxide from the outlet of the heat exchange module, separating the natural gas impoverished with carbon dioxide into a liquid phase rich in carbon (C2+) and a gaseous phase depleted in carbon (C2+), separating the liquid phase into a flow rich in methane and a flow depleted in methane, and separating the flow depleted in methane into a flow rich in carbon (C3+) and a flow depleted in carbon (C3+). A pressure of the natural gas, during cooling, is 10-20 bar. The flow rich in methane is mixed with the gaseous phase depleted in carbon (C2+). The natural gas containing the carbon dioxide undergoes a process consisting of deacidification, dehydration and/or fractionation before converting it into solid state. The flow rich in methane is subjected to a complementary treatment for the elimination of carbon dioxide by washing it with a methanol based solvent. An INDEPENDENT CLAIM is included for an installation for treating a natural gas containing carbon dioxide.    DESCRIPTION OF DRAWING(S) - The diagram shows a schematic view of a method for treating a natural gas containing carbon dioxide.    Heat exchange module (1, 2)    Natural gas supply line (10)    Line for collecting the natural gas impoverished with carbon dioxide (11)    Line for collecting gaseous phase depleted in carbon (12)    Line for collecting a flow rich in methane. (15)