In a post-primary hydrocarbon recovery process including the injecting of solution in water, in one or more organic solvents, or in a mixture of one or more organic solvents and one or more inorganic solvents, into rock strata containing the hydrocarbon to be recovered, the improvement which comprises stabilizing said rocks containing swellable clay minerals, the rock strata including sandstones, sands and marlitic sandstones, water storing rocks, geothermal circulation sites and zones in the vicinity of hydrocarbon production wells, which stabilizing comprises the steps of
- (a) forming an aqueous solution of from about 0.1 to about 500 g/l of a compound or mixtures of compounds having a cation or cations with a hydrated cation diameter of between about 0.13 and about 0.15 nm, and a coordination number of 12;
- and
- (b) injecting the solution of step (a) into said rock strata.