The ship's rope is tied to a post in the dock. The ship is moored to the shore. The rope keeps the boat on the pier.