The invention discloses an anti-condensation dual-power switch cabinet. The device comprises a box body, an arc-shaped rain baffle, a dehumidifying and drying assembly, an air inlet, a filter screen,a box door, a spring bolt, a fixing plate, a mounting groove, a lock body, a sliding groove, a baffle and an air outlet; a rotating motor is mounted on the middle inner wall of the top end of the boxthrough bolts; one end of an output shaft of the rotating motor is fixedly sleeved with fan blades; electric heating plates are symmetrically and fixedly installed on the inner walls of the top ends of the box body located on the two sides of the fan blades , ventilation plates are fixedly installed on the inner walls of the two sides of the box body located below the electric heating plates , ventilation holes are distributed in the outer walls of the top ends of the ventilation plates in a penetrating mode, and air inducing grooves corresponding to the ventilation holes are distributed in the inner walls of the two sides of the box body. The dehumidifying and drying assembly is simple in structure and convenient to operate, the service life of the switch cabinet is prolonged, safety accidents are not likely to happen, the lock body can be effectively protected through the baffle, the service life of the lock body is prolonged, and the safety of the switch cabinet is improved.