The invention relates to a hoisting device with antirust function for ship maintenance, which includes a main girder, a power device, a steel wire rope, a hook and two brackets, and also includes an antirust mechanism and a protection mechanism, and the antirust mechanism includes an oil tank , oil delivery pipe, baffle plate, lifting ring, two connecting sleeves, two connecting rods, two springs and two limit components, the protection mechanism includes guide rails, moving sleeves, rollers, connecting wires, safety buckles, ring Rack and drive components, in the hoisting equipment with anti-rust function used for ship maintenance, lubricating oil can be applied to the wire rope through the anti-rust mechanism, and under the action of lubricating oil, the probability of rusting of the wire rope is reduced , improve the firmness of the wire rope, improve the safety of the gantry crane, under the protective effect of the protective mechanism, reduce the probability of the operator falling from a high altitude, improve the safety of the operator, and improve the practicability of the gantry crane.