The invention discloses a heat-resistant and corrosion-resistant epoxy coating for a heat-resistant and corrosion-resistant power distribution cabinet shell. The heat-resistant and corrosion-resistant epoxy coating is prepared from the following raw materials in parts by weight: 20-40 parts of bisphenol A type epoxy resin, 10-20 parts of polyphenols glycidyl ether epoxy resin, 5-15 parts of novolac epoxy, 6-14 parts of aminoethyl piperazine, 1-2 parts of coalescing agent, 2-4 parts of trimethyl phosphate, 2-6 parts of modified asbestos, 2-4 parts of zeolite powder, 6-10 parts of mica powder, 2-4 parts of glass beads, 1-6 parts of porous powder quartz, 2-6 parts of coal ash, 1-4 parts of cornstalk, 2-5 parts of bentonite, 1-4 parts of carbon black, 5-12 parts of zinc phosphate, 0.5-1.5 parts of antibacterial agent, 2-4 parts of defoaming agent, 5-15 parts of polyvinyl alcohol, and 40-80 parts of water. The epoxy coating disclosed by the invention has extremely high heat stability and corrosion resistance, is not only excellent in airtightness, and but also strong in surface adhesion; and meanwhile, the smearing tenacity can be effectively enhanced, and the smeared coating is hard to break even encountering strong impact.