The invention relates to a drilling device with protective function, which includes a base, an upper shell, a lower shell, a placing mechanism, a cooling mechanism, a lifting mechanism, a lifting plate, a motor, a drill rod and two vertical plates. The placing mechanism includes a platform and two A supporting component, the cooling mechanism includes a water tank, a sealing plug, a return pipe, a water pump and several cooling components, the cooling component includes a nozzle and a cooling tube, and the punching device with a protective function can drive the upper shell and the lower shell during processing through the driving mechanism Close to each other to form a closed processing environment, to prevent debris from splashing and endangering surrounding personnel, to ensure processing safety, and to drive the placement mechanism to fix the workpiece to prevent the workpiece from shaking and shifting, and to use the cooling mechanism to spray water to absorb the heat of the workpiece and the drill pipe to cool down. Extend the life of the drill pipe and improve the machining accuracy. Since the water is sprayed in a closed environment to prevent the water from splashing to the outside, it is convenient to recycle the water for repeated heat absorption and cooling, which improves the practicability of the equipment.