Process for dehydrating a wet hydrocarbon-based gas, in which the following steps are performed: a) a crude hydrocarbon-based gas consisting of a crude natural gas including methane, at least C4+ hydrocarbons and water is supplied, the crude natural gas being supplied at a temperature T > 20°C, at a pressure P > 1 MPa, the gas being at least saturated with water or with hydrocarbons at the temperature T and at the pressure P, and b) a three-phase separation is performed on said crude hydrocarbon-based gas, to obtain a wet hydrocarbon-based gas, hydrocarbon-based liquid condensates and an aqueous liquid effluent, and said wet hydrocarbon-based gas is sent to step c), c) said wet hydrocarbon-based gas is placed in contact with a regenerated desiccant liquid obtained in step e) to obtain a dehydrated gas and a desiccant liquid charged with water, said dehydrated gas having a water content of less than 5 ppm by volume, d) separation of a cut rich in C4 to C10 hydrocarbon compounds contained in the dehydrated gas is performed to obtain a residual gas depleted in C4+ hydrocarbons and a vapour stream rich in C4 to C10 hydrocarbons, in which, in step d), the following steps are performed: i) at least a portion of the C4+ hydrocarbons contained in the dehydrated gas is extracted by performing steps of expansion and/or refrigeration of the dehydrated gas to produce a stream rich in C4+ hydrocarbons, ii) the stream rich in C4+ is distilled to produce a stream enriched in C4 to C10 hydrocarbons, iii) at least a portion of the stream enriched in C4 to C10 hydrocarbons is vapourized by heating to produce the dehydrated vapour stream rich in C4 to C10 hydrocarbons, e) the desiccant charged with water obtained in step c) is regenerated by performing a step of distillation of the desiccant charged with water to remove in vapour form a portion of the water and to obtain a partially regenerated liquid desiccant stream and then by performing step of stripping the partially regenerated liquid desiccant stream by placing in contact with the vapour stream rich in C4 to C10 hydrocarbons obtained in step d) to obtain the regenerated desiccant liquid and a fraction rich in C4 to C10 hydrocarbons and including water, step f) is then performed according to one of the two variants: variant 1: said fraction rich in C4 to C10 hydrocarbons and including water is removed from said process variant 2: said fraction rich in C4 to C10 hydrocarbons and including water is sent into step b) in which a three-phase separation is performed on said crude hydrocarbon-based gas and also the fraction rich in C4 to C10 hydrocarbons and including water obtained from step e). a) a crude hydrocarbon-based gas consisting of a crude natural gas including methane, at least C4+ hydrocarbons and water is supplied, the crude natural gas being supplied at a temperature T > 20°C, at a pressure P > 1 MPa, the gas being at least saturated with water or with hydrocarbons at the temperature T and at the pressure P, and b) a three-phase separation is performed on said crude hydrocarbon-based gas, to obtain a wet hydrocarbon-based gas, hydrocarbon-based liquid condensates and an aqueous liquid effluent, and said wet hydrocarbon-based gas is sent to step c), c) said wet hydrocarbon-based gas is placed in contact with a regenerated desiccant liquid obtained in step e) to obtain a dehydrated gas and a desiccant liquid charged with water, said dehydrated gas having a water content of less than 5 ppm by volume, d) separation of a cut rich in C4 to C10 hydrocarbon compounds contained in the dehydrated gas is performed to obtain a residual gas depleted in C4+ hydrocarbons and a vapour stream rich in C4 to C10 hydrocarbons, in which, in step d), the following steps are performed: i) at least a portion of the C4+ hydrocarbons contained in the dehydrated gas is extracted by performing steps of expansion and/or refrigeration of the dehydrated gas to produce a stream rich in C4+ hydrocarbons, ii) the stream rich in C4+ is distilled to produce a stream enriched in C4 to C10 hydrocarbons, iii) at least a portion of the stream enriched in C4 to C10 hydrocarbons is vapourized by heating to produce the dehydrated vapour stream rich in C4 to C10 hydrocarbons, i) at least a portion of the C4+ hydrocarbons contained in the dehydrated gas is extracted by performing steps of expansion and/or refrigeration of the dehydrated gas to produce a stream rich in C4+ hydrocarbons, ii) the stream rich in C4+ is distilled to produce a stream enriched in C4 to C10 hydrocarbons, iii) at least a portion of the stream enriched in C4 to C10 hydrocarbons is vapourized by heating to produce the dehydrated vapour stream rich in C4 to C10 hydrocarbons, e) the desiccant charged with water obtained in step c) is regenerated by performing a step of distillation of the desiccant charged with water to remove in vapour form a portion of the water and to obtain a partially regenerated liquid desiccant stream and then by performing step of stripping the partially regenerated liquid desiccant stream by placing in contact with the vapour stream rich in C4 to C10 hydrocarbons obtained in step d) to obtain the regenerated desiccant liquid and a fraction rich in C4 to C10 hydrocarbons and including water, variant 1: said fraction rich in C4 to C10 hydrocarbons and including water is removed from said process variant 2: said fraction rich in C4 to C10 hydrocarbons and including water is sent into step b) in which a three-phase separation is performed on said crude hydrocarbon-based gas and also the fraction rich in C4 to C10 hydrocarbons and including water obtained from step e).