The waterproof box applied to the switch is characterized in that a clamping groove is formed in the side, away from a wall frame, of a bottom plate in a penetrating mode in the width direction, a plurality of first screw holes are formed in the circumferential direction of the wall frame, and a plurality of screw fixing positions and at least one hanging hole are formed in the area, corresponding to the outside of the wall frame, of the bottom plate; according to the waterproof box applied to the switch, the bottom of the bottom plate is provided with the clamping groove, the waterproof box can be clamped and fixed, the bottom plate is provided with the screw fixing position, the waterproof box can be fixed on an external fixing foundation through screws, and the bottom plate is provided with the hanging hole. Screws can be adopted to penetrate through the hanging holes to hang the waterproof box on an external fixing base, a plurality of first screw holes are formed in the upper circumference of the wall frame in the circumferential direction, and first screws fix the waterproof box on an external fixing structure through the first screw holes. The upper cover is arranged on the box body through a plurality of second screws, and the advantages of high stability and high maintenance degree are achieved; and the window body is arranged at the window position on the upper cover, so that a basis is provided for reducing an exposed area.