The invention relates to the technical field of charging piles, and particularly discloses a charging
pile with a self-locking type anti-falling direct-current charging gun, the charging
pile comprises a charging
pile body, the charging gun and a cable, the charging gun comprises a shell and a locking arm, a self-
locking mechanism and a
protection mechanism are arranged in the charging gun, the self-
locking mechanism comprises a sliding sleeve, a sliding block and a connecting piece, and the sliding sleeve is connected with the cable. The locking arm is provided with a locking part and an unlocking part, the
protection mechanism comprises a movable block, a reset spring and an overload spring, the cable has length redundancy in the charging gun, the cable drives the sliding sleeve to move by means of the
self weight of the cable, the sliding block is driven to move to the position below the locking arm to form physical support, self-locking is achieved, poor contact is prevented, and when overload pulling force such as car sliding occurs, the cable is locked. The slide block is driven to cross the locking part and forcibly trigger the locking arm to unlock, and the overload spring is matched to push the charging gun to automatically separate; the problems that the charging gun is prone to loosening due to cable dragging and cannot be automatically released in danger are solved, and unification of rigid safety and flexible protection is achieved.