The invention discloses a switch cabinet capable of automatically cooling and dehumidifying, and belongs to the field of switch cabinets. The switch cabinet comprises a cabinet body provided with an exhaust tube at the top, a cooling device and a dehumidifying device, wherein the dehumidifying device comprises a gas suction pump, a
moisture tube, a
dry gas tube and a
drying tank, the both ends of the
drying tank are detachably connected with the
moisture tube and the
dry gas tube, the other end of each of the
moisture tube and the
dry gas tube stretches in the cabinet body, and the moisture tube is connected with the gas suction pump; the cooling device comprises a
dry ice production device, a
dry ice storage box and a circulation tube, the
dry ice production device is communicated with the dry
ice storage box through a middle tube, the dry
ice storage box is communicated with the dry ice production device through the circulation tube, a temperature sensor, a
humidity sensor, a
smoke sensor and a
gas pressure detector are arranged in the cabinet body, and a controller is arranged at the outer side of the cabinet body. According to the switch cabinet disclosed by the invention, a circulation cooling
system is formed by virtue of dry ice gasification, the heat dissipation efficiency is high, and moreover, the dehumidifying device is simple in structure and free from generating additional heat during working.