What is the function of a cylinder liner?

A cylinder liner is the central working part of a reciprocating engine or pump, the space in which a piston travels.