In a known drilling mud for drilling wells in collapsing rocks, which contains clay, sodium silicate and polyacrylamide (PAA), in order to increase its specific electrical resistance and to increase the strengthening properties, a silicoorganic liquid is additionally introduced into its composition with the following component ratio (percent): clay, 5 to 7; sodium silicate, 5 to 7; polyacrylamide, 0.3 to 0.5; silicoorganic liquid, GKZh-94, 0.5 to 1.5 and water, the remainder. The GKZh-94 is a chemical compound based on alkylphenylchlorsilanes and substituted ethers of orthosilicic acid, used for waterproofing fabrics and soils. The addition of GKZh-94 provides the required values of the specific electric resistance of the mud and does not distort the gas logging indications. The proposed mud has low water production (4 to 6 cubic centimeters), optimal viscosity (25 to 31 seconds) and high structural and mechanical properties. Its strengthening properties are substantially above those of the known mud.