A ship needs to be secured to the wharf or it will move and bump about, possibly damaging the ship and the wharf.
Special boast called mooring boat can take the mooring line from a ship to the wharf. Another way to do this is for the ship’s crew, at each end of the ship, to throw a heaving line to the
lines people on the wharf.