A ship having an intrusion prevention function is provided. A ship having an intrusion prevention function according to the present embodiment is a ship for preventing unauthorized intrusion from the outside. The ship includes a hull, a fence installed along the circumference of the hull, a power supply for supplying electricity to the fence, , It is possible to prevent intrusion of a pirate by blocking the attachment of an intrusion tool such as a hook to the vessel.침입방지 기능을 구비한 선박이 제공된다. 본 실시예에 따른 침입방지 기능을 구비한 선박은 외부로부터의 무단침입을 방지하는 선박으로서, 선체, 선체의 둘레를 따라 설치된 펜스(fence), 펜스에 전기를 공급하며 전기공급을 조절하는 전원부를 포함하여, 선박에 갈고리 등의 침입도구 부착을 차단함으로써 해적의 무단침입을 방지할 수 있다.