The invention discloses a preparation method of an antistatic coating, and belongs to the technical field of high polymer materials. The preparation method comprises the following steps: mixing and fermenting sisal fibers, a bacillus pasteurii bacterial solution, urea and water, dropwise adding an iron nitrate solution, stirring and mixing, filtering, freezing, ball-milling, sieving, drying and carbonizing the mixture, performing gradual heating, and carrying out high-temperature treatment to obtain the modified fibers. According to weight ratio, 40-60 parts of modified epoxy resin, 40-60 parts of a diluent, 10-20 parts of pretreated mica powder, 10-20 parts of modified fiber, 10-20 parts of modified additive, 5-8 parts of a curing agent, 5-8 parts of modified sepiolite, 20-30 parts of alkaline phenolic resin and 10-20 parts of modified diatomite are stirred and mixed to obtain the antistatic coating. The anti-static coating provided by the invention has excellent anti-static performance.