A double-acting hydraulic cylinder uses hydraulic pressure to both extend and retract the piston.