Electrical machinery fires are usually caused by overheating caused by factors such as aging of the insulation of electrical machinery and equipment, loose joints, overload or short circuit. Especially in flammable and explosive places, the above-mentioned electrical and mechanical circuits are more harmful. In order to prevent electrical and mechanical fire accidents, fire prevention measures must be taken. (1) Frequently check the operation of electrical machinery and equipment, check whether the joints are loose, whether there is any electric spark, whether the performance of the overload and short-circuit protection devices of the electrical machinery and equipment is reliable, and whether the equipment insulation is good. (2) Reasonably select electrical machinery and equipment. In places with flammable and explosive materials, when installing and using electrical machinery and equipment, explosion-proof electrical appliances should be used, and insulated wires must be sealed and laid in steel pipes. Electrical equipment should be selected and installed according to the level of explosion hazard sites. (3) Keep a safe installation position. Maintaining the necessary safety distance is one of the important measures for fire protection of electrical machinery. In order to prevent electrical machinery sparks and dangerous high temperatures from causing fires, flammable and explosive materials should not be stacked around electrical machinery and equipment that can produce sparks and dangerous high temperatures. (4) Maintain the normal operation of electrical machinery and equipment. Sparks and dangerous high temperatures generated during the operation of electrical machinery and equipment are important causes of electrical machinery fires. In order to control excessive working sparks and dangerous high temperatures and ensure the normal operation of electrical machinery and equipment, it should be operated, used and maintained by trained and qualified personnel. (5) Ventilation. Electrical machinery and equipment operating in flammable and explosive hazardous locations should be well ventilated to reduce the concentration of explosive mixtures. The ventilation system should meet the relevant requirements. (6) Grounding. Grounding requirements in flammable and explosive hazardous locations are higher than those in general locations. Regardless of its voltage level, normal uncharged devices should be reliably grounded in accordance with relevant regulations.