The invention discloses a switch cabinet preventing electric leakage and electric shock. The switch cabinet comprises a switch cabinet mounting base and a switch cabinet body, wherein the switch cabinet mounting base is movably connected with the switch cabinet body, limiting supporting plates are symmetrically connected to the two sides of the switch cabinet mounting base, ground nail mounting holes are symmetrically formed in the positions, close to the edge, of the switch cabinet mounting base, fixed ground nails penetrate through the ground nail mounting holes, and the lower end of the switch cabinet body is fixedly connected with a bottom supporting plate. According to the switch cabinet preventing electric leakage and electric shock, the switch cabinet mounting base is arranged underthe switch cabinet body, the switch cabinet body can be prevented from toppling over by fixing the switch cabinet mounting base and fixing the position of the switch cabinet body, and the structure is simple; and the moving position of the switch cabinet body is limited on the switch cabinet mounting base through adjusting screw columns penetrating through the movable round holes, the whole switch cabinet body can be moved up and down, the sealing performance of the switch cabinet body is ensured, and electric leakage and electric shock are avoided.