The science of ensuring a ship's stability in various conditions and its ability to resist capsizing or sinking.