A boat rub rail is put in place to keep the boat from becoming damaged by cushioning the boat from the dock. It is usually made of a material that will allow the boat to gently skim the dock. This will save the boat from scuffs. This will also prevent holes or dents in the boat. This will keep your boat nicer longer.