The invention discloses a hexagonal boron nitride epoxy compound anticorrosion coating and a preparation method and application thereof. The anticorrosion coating is mainly composed of hexagonal boron nitride, polyaniline nanofiber, epoxy resin, a disperse medium, a coating additive, an epoxy resin curing agent, a solvent, etc. The hexagonal boron nitride epoxy compound anticorrosion coating provided by the invention has good storage stability, is not easy to sink to the bottom, has simple preparation process, is low-cost, and is suitable for large-scale production. A coating layer formed by the coating has excellent barrier property and lasting corrosion resistance. The product has a good application prospect in the industries of chemical engineering, petroleum, electric power, ship, light textile, storage, transportation, spaceflight, etc.