The invention discloses a wall fixing agent modified resin polymer for drilling fluid. The wall fixing agent is prepared from the following raw materials: 200 to 220 parts of clear water, 20 to 30 parts of starch, 8 to 10 parts of 40% sodium hydroxide aqueous solution, 5.0 to 10.0 parts of 2-chloroethyl trimethyl ammonium chloride, 20 to 30 parts of acrylamide, 10 to 20 parts of methacryloyloxyethyl trimethyl ammonium chloride, 0.5 to 1 part of initiator, 10 to 20 parts of potassium nitrohumate, 10 to 20 parts of pseudo-boehmite, 0 to 12 parts of poly(1,3-propylidene pyridine chloride) and 20to 30 parts of adjuvant. The performance of the wall fixing agent is as follows: the water content is less than or equal to 10.0%, the low-temperature medium-pressure filtration loss is less than or equal to 10 mL, the wall fixing agent is aged for 16 h at normal temperature, high temperature of 150 DEG C and 180 DEG C, and the high-temperature high-pressure filtration loss is less than or equal to 30.0 mL. The drilling fluid can resist the high temperature of 180 DEG C or above, the filter loss is effectively reduced, the cementing force between rocks is enhanced, and the breaking strength isimproved, so that the well wall is stabilized, collapse is avoided, the safety of drilling engineering is ensured, and the drilling fluid also has the advantages of environmental friendliness and good biodegradability.