The invention provides a waterproof and anti-electric-shock socket and a function module thereof. The waterproof and anti-electric-shock socket comprises a sealing piece, a
magnetic switch, a floating body, magnets and a waterproof shell, wherein the sealing piece is arranged in a jack of a socket and isolates electrical contact between plugs, the
magnetic switch controls
electrical connection between a plug sleeve and a power line, the floating body can be movably disposed in the socket and has a floating body jack, the floating body jack is aligned with the socket jack and the plug sleeve, the plug sleeve can pass through the floating body jack, the magnets are attached to the floating body and can move along with the floating body, and the waterproof shell is provided with a floating
body cavity used for receiving the floating body and a switch cavity used for accommodating the
magnetic switch. The floating body is arranged in a plugging path through which the plugs are plugged in the plug sleeve, and the floating body is held by an elastic piece in a first position and can move to a second position in which the plugs and the plug sleeve are allowed to be connected. The magnetic switch is in an open state when corresponding to the
magnet in the first position and is in a
closed state when corresponding to the
magnet in the second position.