The invention discloses an electrical switch cabinet capable of automatically extinguishing fire. The electrical switch cabinet comprises a container bottle, a plurality of automatic nozzles and a fire extinguishing agent release tube, wherein the automatic nozzles comprise valve bodies, first cavities, second cavities, connecting channels, temperature sensing driving components, ejector pins, sealing balls and eccentric supporting springs; the temperature sensing driving components are capable of sensing the temperature of high-temperature gas in the electrical switch cabinet, taking action,driving the sealing balls to move, and opening the connecting channels, so that a non-conducting fire extinguishing agent in the container bottle can be sprayed out so as to extinguish fire; since thefire extinguishing agent is non-conducting, no secondary harm can be caused during the fire extinguishing process; through the arrangement of more than one automatic nozzle in the electrical switch cabinet, the automatic extinguishing of a fire disaster point can be accurately achieved and then the perfect conditions of the other components in the electrical switch cabinet can be guaranteed to the greatest extent; and furthermore, the temperature sensing driving component is sensitive to act, capable of controlling the opening and closing of the automatic nozzles, reliable in running, so thatthe running safety of the electrical switch cabinet can be effectively improved, no extra power source is needed during the use, and the reuse can be achieved.