An explosion-proof device wherein electrical components and a battery capable of supplying electricity to these electrical components are housed in a frame having a hollow shape. The supply of electricity from the battery to the electrical components is stopped by a protection device when an explosive atmosphere flows into the frame. The battery is housed in an explosion-proof container inside the frame, so damage to the surrounding area can be effectively minimized even when an explosive atmosphere flows into the frame and is ignited by the battery.