keelhauling is a cruel punishment wherein a poor seaman is taken up to the bow and a long rope is tied to each of his legs and he 's thrown overboard and the ropes are walked back , one on the port side and one on the starboard side , drawing the man underwater all along the encrusted keel and back to the stern of the ship , where he 's hauled back up , half drowned and bloody .