They were afraid that the ship might go onto some rocks, so they threw out four anchors from the ship’s stern/back and continued to wish/pray that it would soon be dawn so that they could see where the ship was going.