The productivity of hydrocarbons from hydrocarbon-bearing calcareous or siliceous formations is enhanced by contacting the formation with a well treatment composition which contains a hydrofluoric acid source, a boron containing compound and a phosphonate acid, ester or salt thereof.