A formula of a moisture-proof anti-inflammatory drug comprises medicines in parts by weight as follows: 1,950 parts of metronidazole, 1,650 parts of clotrimazole, 82 parts of chlorhexidine acetate, 800 parts of lactose, 980 parts of tartaric acid, 260 parts of low-substituted carboxy cellulose, 750 parts of boric acid, 200 parts of polyvinylpyrrolidone, 260 parts of sodium carboxymethyl starch, 1,000 parts of sodium bicarbonate, 650 parts of pregelatinized starch and 260 parts of microcrystalline cellulose. A technology of the drug comprises the steps of S1, preparing an effervescent film agent solution; S2, preparing a dispersing agent; S3, preparing alkaline particles; S4, preparing acidic particles; S5, preparing main drug particles; S6, preparing a finished product. Moisture in a preparation process can be removed effectively, the drug quality cannot be affected by inside imbibition, meanwhile, outside moisture can be separated from inside effective ingredients and dispersing agent ingredients effectively through a protective film coating outside, the purpose of moisture-proof is achieved, and the technology has very high practical value.