An outdoor set of plug and socket comprises a control box, a plug and a socket box having at least a socket provided with a movable cover. The top surface of the plug is further provided with an uprightly erected wall having at least a retaining flange to be engaged with the recessed portion of the movable cover when the plug is inserted into a socket of the socket box. Thereby, the plug will be securely attached with the socket box.