Lining is the application of a protective coating on the inside surface of pipes, whereas coating refers to the same except for its application to the pipe exterior. Both lining and coating are intended to reduce corrosion and abrasion of pipes. Lining also serves the purpose of forming a smooth pipeline interior, which reduces frictional loss, and it helps reduce damage to pipes by cavitation in some situations.