The invention discloses an anti-collision electric power cabinet with a height adjustment function. The anti-collision electric power cabinet comprises a base, a cabinet body, screw thread rods, a first motor, belt wheels, a belt, sleeves, protection plates, a spring, a cylinder body, a piston rod and a safety airbag. By virtue of setting of the first motor, the screw thread rods, the belt wheelsand the belt, the height of the cabinet can be adjusted, and damage to the electrical power equipment in the cabinet body caused by large-area ground water accumulation can be avoided; by virtue of matching of a second motor, a circular ring, a movable rod and a fan, the fan can be driven to move left and right, so that the electric power equipment can be subjected to heat dissipation by the fan completely and uniformly in a mobile manner with a good effect, so that heat dissipation efficiency is improved; and by virtue of setting of the protection plates, the piston rod, the piston, the cylinder body and the safety airbag, the safety airbag is inflated with air when the protection plates on the two sides of the cabinet body suffer from collision, so that the electric power equipment in the cabinet body is further buffered and protected, and damage to the electrical power equipment in the cabinet body can be avoided.