The utility model discloses a switch cabinet wire inlet hole with a self-locking structure, which comprises a device main body and a multifunctional self-locking structure, the rear end of the device main body is provided with a rotary hinge, the other side of the rotary hinge is connected with a box cover, the device main body is internally provided with the multifunctional self-locking structure, and the multifunctional self-locking structure is connected with the box cover. The multifunctional self-locking structure comprises a wire inlet hole, a locking piece, a limiting block, a movable plate, a shifting piece, a spring, a fixing column and a bottom plate, the locking piece is arranged on the inner side of the wire inlet hole, the shifting piece is connected to one side of the movable plate, the spring is connected to the lower end of the shifting piece, and a worker inserts a connector into the wire inlet hole and releases the shifting piece, so that the wire inlet hole is opened, and the wire inlet hole is closed. When the plug is plugged in, the spring on the lower side of the plectrum drives the plectrum to reset, the three groups of locking sheets rotate to fix the connector, when the plug is pulled out, a worker also needs to repeat the operation to ensure that the plug can be safely pulled out, and due to the arrangement of the locking sheets, the design can ensure that the connector is firmly locked when the plug is plugged in, and potential risks caused by misoperation are prevented.