The Phalanx CIWS is an automated gun-based close-in weapon system to defend military watercraft automatically against incoming threats such as aircraft, missiles, and small boats.