An explosion-proof solenoid valve encloses all parts of the equipment that may ignite explosive gas mixtures in a shell. The shell can withstand the internal explosion of the flammable mixture that penetrates into the shell through any joint surface or structural gap of the shell without being damaged, and without damage. It will cause the ignition of an external explosive environment formed by one or more gases or vapors. Put the parts that may produce sparks, arcs and dangerous temperatures into the explosion-proof enclosure. The explosion-proof enclosure separates the internal space of the equipment from the surrounding environment. separated. There are gaps in the flameproof enclosure, and due to the respiration and gas penetration of electrical equipment, explosive gas mixtures may exist inside.