The invention discloses an antistatic coating and a preparation method thereof. The antistatic coating is prepared from, by weight, epoxy resin, acrylic resin, an antistatic nano-filler, polyethylene glycol, tetrabutyl orthosilicate, gelatin, dipropylene glycol butyl ether, zinc acetate, an isobutyltriethoxysilane coupling agent, a leveling agent and a solvent. The antistatic coating prepared in the invention has the advantages of low volume resistance, good shielding performance, realization of the adhesion grade being 1 grade, short curing time, wide range of the use temperature, industry standard meeting, realization of no foaming, cracking or peeling phenomena of a surface coated with the coating, and good comprehensive performances.