Method for drying a first wet gas stream containing at least 90 mol%, preferably at least 95 mol%, or even at least 98 mol% CO 2 on a dry basis, comprising the following steps: i) compressing the first wet gas stream to a first pressure in at least one compression step (3, 9), in order to obtain a first wet gas stream at the first pressure, and then cooling it in at least one cooler (5, 11, 13) downstream of the compression step, part of the water (7, 15) produced by compression and the cooling being removed upstream of an adsorption unit ii) drying the first stream in the water adsorption unit of the type implementing n adsorbers (17A, 17B) with, for each adsorber, a cycle comprising the following operating phases, which are offset from one adsorber to another by an nth of the duration of the cycle: a. adsorption, this adsorption phase involving the admission of the first wet gas stream into the adsorber via a first end, called inlet end, of the adsorber, with circulation of this stream in the adsorber and simultaneous withdrawal, via the other end of the adsorber, of gas purified of water, and b. regeneration of the adsorber during which a regeneration gas regenerates the adsorber, the first stream being purified of water in one of the adsorbers to produce a dried gas (19, 29) while the regeneration gas is sent to another of the adsorbers, iii) exporting and/or liquefaction elsewhere than in a dried gas separation apparatus iv) separating a gas containing less than 90 mol% CO2 on a dry basis and at least one impurity, other than the dried gas, by partial condensation and/or distillation at a temperature of less than 0°C in the separation apparatus producing a gas (35, 37) containing at least 90 mol% of carbon dioxide which constitutes at least part of the regeneration gas and v) sending the regeneration gas (49, 51) that has regenerated the adsorber to be mixed with the wet stream upstream of at least one of the compression steps and of at least one of the coolers. i) compressing the first wet gas stream to a first pressure in at least one compression step (3, 9), in order to obtain a first wet gas stream at the first pressure, and then cooling it in at least one cooler (5, 11, 13) downstream of the compression step, part of the water (7, 15) produced by compression and the cooling being removed upstream of an adsorption unit ii) drying the first stream in the water adsorption unit of the type implementing n adsorbers (17A, 17B) with, for each adsorber, a cycle comprising the following operating phases, which are offset from one adsorber to another by an nth of the duration of the cycle: a. adsorption, this adsorption phase involving the admission of the first wet gas stream into the adsorber via a first end, called inlet end, of the adsorber, with circulation of this stream in the adsorber and simultaneous withdrawal, via the other end of the adsorber, of gas purified of water, and b. regeneration of the adsorber during which a regeneration gas regenerates the adsorber, the first stream being purified of water in one of the adsorbers to produce a dried gas (19, 29) while the regeneration gas is sent to another of the adsorbers, a. adsorption, this adsorption phase involving the admission of the first wet gas stream into the adsorber via a first end, called inlet end, of the adsorber, with circulation of this stream in the adsorber and simultaneous withdrawal, via the other end of the adsorber, of gas purified of water, and b. regeneration of the adsorber during which a regeneration gas regenerates the adsorber, iii) exporting and/or liquefaction elsewhere than in a dried gas separation apparatus iv) separating a gas containing less than 90 mol% CO2 on a dry basis and at least one impurity, other than the dried gas, by partial condensation and/or distillation at a temperature of less than 0°C in the separation apparatus producing a gas (35, 37) containing at least 90 mol% of carbon dioxide which constitutes at least part of the regeneration gas and v) sending the regeneration gas (49, 51) that has regenerated the adsorber to be mixed with the wet stream upstream of at least one of the compression steps and of at least one of the coolers.