The invention discloses modified polyanionic ammonium salt for drilling fluid and a preparation method of the modified polyanionic ammonium salt. The ammonium salt is prepared from following materials of hydrolyzed polyacrylonitrile ammonium salt, epoxy chloropropane, water, dodecyl dimethyl allyl ammonium chloride, crylic acid, 2-acrylamide-2-methyl-propanesulfonic acid, acrylamide, ammonium persulfate and sodium sulfite. The preparation method comprises the following steps of: weighing water, hydrolyzed polyacrylonitrile ammonium salt, epoxy chloropropane, dodecyl dimethyl allyl ammonium chloride, ammonium persulfate and sodium sulfite; putting into a reaction kettle, sealing, heating, reacting and cooling; adding the weighed crylic acid, the 2-acrylamide-2-methyl-propanesulfonic acid and acrylamide to the cooled reaction kettle, stirring to completely dissolve, sealing and leading in nitrogen, heating and reacting under protection of the nitrogen; and discharging to obtain a product by vacuulizing and drying. The modified polyanionic ammonium salt can resist super-high temperature of 240 DEG C, resists statured salt water, compound saline water and seawater, can effectively reduce the filter loss of the drilling fluid, does not tackify, and is good in anti-collapse performance.