The invention relates to an automatic side wall separating mechanism of an electric connector. The side wall automatic separating mechanism comprises a plug and a socket, wherein the socket comprisesa socket shell and a locking pin, and the plug comprises an outer shell, a plug cable cover, a fixing frame and a plug shell; the plug cable cover is fixedly connected in the fixing frame, and a clamping hook matched with the locking pin is arranged on the outer shell. The automatic side wall separating mechanism of the electric connector is characterized in that the clamping hook is arranged on the outer shell and the locking pin is arranged on the socket, when the plug and the socket can be plugged, only the downward insertion force needs to be applied to the outer shell, when the plug is incontact with the socket, a locking block is subjected to upward pressure, a pressure spring is compressed, when a groove is matched with a moving end, a guide rod moves leftwards under the acting force of a spring, the outer shell moves leftwards along with the guide rod, and when the clamping hook on the outer shell clamps the locking pin, the plug and the socket can be locked. The automatic side wall separating mechanism has the advantages of being capable of automatically separating along with elasticity, high in reliability and convenient to use.