Abstract: A method and composition for controlling the profile of a formation where temperatures higher than 400.degree. F. are encountered. An aqueous solution of an organoammonium silicate, alkali metal or ammonium silicate is injected into a zone of higher permeability in a formation. Subsequently, a spacer volume of a water-immiscible organic solvent is directed into said zone. Afterwards, a water-miscible organic solvent containing an alkylpolysilicate and an inorganic salt or a chelated calcium compound are injected into the higher permeability zone. A silicate cement is formed in-situ thereby substantially closing the higher permeability zone to fluid flow. Thereafter, a steam-flooding, water-flooding, carbon dioxide-flooding, or fire-flooding EOR operation is commenced in a lower permeability zone.