The primary purpose of a cylinder liner is to provide a wear-resistant surface for the piston to move against and to dissipate heat generated during combustion.