A method for treating a subterranean formation by introducing into a gas
or oil well a stable foam well treatment fluid which exhibits high
viscosity. The well treatment fluid is prepared by first forming a
mixture of crosslinking agent and foaming agent and then introducing the
mixture to an aqueous fluid containing a crosslinkable polymer followed
by the addition of a gas or gaseous liquid.