Hydraulic cylinders are used for creating mechanical force in a linear motion. ... Attached to the rod, interior to the cylinder, is a piston. The piston separates the internal rod side from the internal cap side of the cylinder. Fluid is forced into either side of the cylinder to extend or retract the piston rod