Cruise ships ward off pirates by taking a variety of measures. They employ armed guards, use high-tech surveillance systems, and have water cannons to deter any potential attackers. Additionally, they often travel in convoys with other vessels for added protection and security.