The piston transforms the energy of the expanding gasses into mechanical energy. The piston rides in the cylinder liner or sleeve as shown Major Components of a Diesel Engine. Pistons are commonly made of aluminum or cast iron alloys.