The invention belongs to the technical field of electrical cabinets, and particularly relates to an active avoidance-based anti-collision electrical cabinet. The active avoidance-based anti-collision electrical cabinet comprises a rear plate, a bottom plate, a top plate, a side plate, a front plate, element mounting shells, avoidance mechanisms, connecting support parts, guide rails, a transverse beam, and avoidance sliding blocks, wherein the multiple element mounting shells are connected together through the connecting support parts, and are all mounted on the transverse beam; the transverse beam is slides in guide rail grooves of the guide rails through the avoidance sliding blocks; the front and back parts of the element mounting shells are connected with the front plate and the rear plate through the four avoidance mechanisms; when the front plate or the rear plate is subject to impact force and deforms, the adjacent avoidance mechanisms are released; then the original force balance between the two sides of the element mounting shells is lost; and the element mounting shells move to the other side under the function of pulling force of the avoidance mechanisms on the other side, so that the overall electrical cabinet is far from the impact point side, and the element mounting shells are protected. According to the active avoidance-based anti-collision electrical cabinet, the failure of the avoidance mechanisms is triggered by impact, then the element mounting shells move to avoid impact, and therefore, the active avoidance-based anti-collision electrical cabinet has a relatively good practical effect.