Complex sentence: The main criteria for detention is that a ship which is unsafe to proceed to sea and that the deficiencies on a ship is so serious and they have to be rectified before the ship sail again.
Split into simpler sentences: The main criteria for detention is that a ship which is unsafe to proceed to sea and that the deficiencies on a ship is so serious. These deficiencies have to be rectified before the ship sail again.