Before a ship is permitted to enter a harbour the ship must be stable. Sometimes repairs at sea are required to stabilise a ship in order to proceed with its voyage.