The hull is a ship's watertight enclosure, engineered to provide sufficient protection for the cargo, machinery, and passenger accommodations. Its most basic purpose is to safeguard against weather, flooding, and/or structural damage.