The cleat hitch is the most widely used knot for tying a boat to a dock. It's safe and straightforward to use.