A cable with an efficient cooling function disclosed by the present invention comprises a shell, a liquid storage cavity is arranged in the shell, the liquid storage cavity is filled with a cooling liquid, a reciprocating cavity is arranged in the shell, a reciprocating mechanism is arranged in the reciprocating cavity, the reciprocating mechanism comprises a moving block arranged in the reciprocating cavity, and the moving block is connected with the reciprocating cavity. The moving block is slidably connected with the inner wall of the reciprocating cavity, the left side of the moving block is elastically connected with the inner wall of the left side of the reciprocating cavity through an electrified spring, the moving block has conductivity, and a conducting strip is arranged at the inner bottom of the reciprocating cavity. According to the cable, cooling liquid is used for absorbing heat generated by the cable, then the cooling liquid flows in the coiled pipe to quickly discharge the heat to the outside, so that the situation that the cable is damaged due to the fact that the temperature in the cable is too high is avoided, meanwhile, the stirring rod disturbs the cooling liquid, and the floating ball shakes in the cooling liquid; and the cooling liquid can further uniformly absorb heat, and the heat absorption effect is improved.